This is a port of cyaSSL 2.7.0.
Dependents: CyaSSL_DTLS_Cellular CyaSSL_DTLS_Ethernet
cyassl/openssl/pem.h@0:714293de3836, 2013-09-05 (annotated)
- Committer:
- ashleymills
- Date:
- Thu Sep 05 10:33:04 2013 +0000
- Revision:
- 0:714293de3836
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashleymills | 0:714293de3836 | 1 | /* pem.h for openssl */ |
ashleymills | 0:714293de3836 | 2 | |
ashleymills | 0:714293de3836 | 3 | |
ashleymills | 0:714293de3836 | 4 | #ifndef CYASSL_PEM_H_ |
ashleymills | 0:714293de3836 | 5 | #define CYASSL_PEM_H_ |
ashleymills | 0:714293de3836 | 6 | |
ashleymills | 0:714293de3836 | 7 | #include <cyassl/openssl/evp.h> |
ashleymills | 0:714293de3836 | 8 | #include <cyassl/openssl/bio.h> |
ashleymills | 0:714293de3836 | 9 | #include <cyassl/openssl/rsa.h> |
ashleymills | 0:714293de3836 | 10 | #include <cyassl/openssl/dsa.h> |
ashleymills | 0:714293de3836 | 11 | |
ashleymills | 0:714293de3836 | 12 | #ifdef __cplusplus |
ashleymills | 0:714293de3836 | 13 | extern "C" { |
ashleymills | 0:714293de3836 | 14 | #endif |
ashleymills | 0:714293de3836 | 15 | |
ashleymills | 0:714293de3836 | 16 | |
ashleymills | 0:714293de3836 | 17 | CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa, |
ashleymills | 0:714293de3836 | 18 | const EVP_CIPHER* cipher, |
ashleymills | 0:714293de3836 | 19 | unsigned char* passwd, int len, |
ashleymills | 0:714293de3836 | 20 | pem_password_cb cb, void* arg); |
ashleymills | 0:714293de3836 | 21 | |
ashleymills | 0:714293de3836 | 22 | CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa, |
ashleymills | 0:714293de3836 | 23 | const EVP_CIPHER* cipher, |
ashleymills | 0:714293de3836 | 24 | unsigned char* passwd, int len, |
ashleymills | 0:714293de3836 | 25 | pem_password_cb cb, void* arg); |
ashleymills | 0:714293de3836 | 26 | |
ashleymills | 0:714293de3836 | 27 | CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio, |
ashleymills | 0:714293de3836 | 28 | CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg); |
ashleymills | 0:714293de3836 | 29 | |
ashleymills | 0:714293de3836 | 30 | #define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey |
ashleymills | 0:714293de3836 | 31 | #define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey |
ashleymills | 0:714293de3836 | 32 | #define PEM_read_bio_PrivateKey CyaSSL_PEM_read_bio_PrivateKey |
ashleymills | 0:714293de3836 | 33 | |
ashleymills | 0:714293de3836 | 34 | |
ashleymills | 0:714293de3836 | 35 | #ifdef __cplusplus |
ashleymills | 0:714293de3836 | 36 | } /* extern "C" */ |
ashleymills | 0:714293de3836 | 37 | #endif |
ashleymills | 0:714293de3836 | 38 | |
ashleymills | 0:714293de3836 | 39 | |
ashleymills | 0:714293de3836 | 40 | #endif /* CYASSL_PEM_H_ */ |
ashleymills | 0:714293de3836 | 41 |