]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/CyaSSL/cyassl/openssl/pem.h
b727862b963debf59518003af41351a50ecba578
[freertos] / FreeRTOS-Plus / Source / CyaSSL / cyassl / openssl / pem.h
1 /* pem.h for openssl */
2
3
4 #ifndef CYASSL_PEM_H_
5 #define CYASSL_PEM_H_
6
7 #include <cyassl/openssl/evp.h>
8 #include <cyassl/openssl/bio.h>
9 #include <cyassl/openssl/rsa.h>
10 #include <cyassl/openssl/dsa.h>
11
12 #ifdef __cplusplus
13     extern "C" {
14 #endif
15
16
17 CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
18                                           const EVP_CIPHER* cipher,
19                                           unsigned char* passwd, int len,
20                                           pem_password_cb cb, void* arg);
21
22 CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
23                                           const EVP_CIPHER* cipher,
24                                           unsigned char* passwd, int len,
25                                           pem_password_cb cb, void* arg);
26
27 CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
28                         CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg); 
29
30 #define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
31 #define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
32 #define PEM_read_bio_PrivateKey     CyaSSL_PEM_read_bio_PrivateKey
33
34
35 #ifdef __cplusplus
36     }  /* extern "C" */ 
37 #endif
38
39
40 #endif /* CYASSL_PEM_H_ */
41