pki.h
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:0k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- #ifndef PKI_H
- #define PKI_H
- #include "gwlib.h"
- #include <openssl/x509.h>
- /* pki.c /pki.h contain an interface to openssl to read and manipulate various
- encryption and certificate functions */
- void pki_init(void);
- void pki_shutdown(void);
- void get_cert_from_file(Octstr *s, X509 **x509);
- void get_privkey_from_file(Octstr *s, RSA **priv_key, Octstr *password);
- void dump_cert(X509 *x509);
- void dump_privkey(RSA *priv_key);
- #endif PKI_H