1 #ifndef RSASTUBS_H_ 2 #define RSASTUBS_H_ 20120412 3 4 #include "rsa.h" 5 6 #ifndef __BEGIN_DECLS 7 # if defined(__cplusplus) 8 # define __BEGIN_DECLS extern "C" { 9 # define __END_DECLS } 10 # else 11 # define __BEGIN_DECLS 12 # define __END_DECLS 13 # endif 14 #endif 15 16 __BEGIN_DECLS 17 18 typedef int pem_password_cb(char */*buf*/, int /*size*/, int /*rwflag*/, void */*userdata*/); 19 20 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **x, pem_password_cb *cb, void *u); 21 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **x, pem_password_cb *cb, void *u); 22 23 __END_DECLS 24 25 #endif 26