cyassl re-port with cellular comms, PSK test

Dependencies:   VodafoneUSBModem_bleedingedge2 mbed-rtos mbed-src

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pem.h Source File

pem.h

00001 /* pem.h for openssl */
00002 
00003 
00004 #ifndef CYASSL_PEM_H_
00005 #define CYASSL_PEM_H_
00006 
00007 #include <cyassl/openssl/evp.h>
00008 #include <cyassl/openssl/bio.h>
00009 #include <cyassl/openssl/rsa.h>
00010 #include <cyassl/openssl/dsa.h>
00011 
00012 #ifdef __cplusplus
00013     extern "C" {
00014 #endif
00015 
00016 
00017 CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
00018                                       const EVP_CIPHER* cipher,
00019                                       unsigned char* passwd, int len,
00020                                       pem_password_cb cb, void* arg);
00021 
00022 CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
00023                                       const EVP_CIPHER* cipher,
00024                                       unsigned char* passwd, int len,
00025                                       pem_password_cb cb, void* arg);
00026 
00027 CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
00028                         CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg); 
00029 
00030 #define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
00031 #define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
00032 #define PEM_read_bio_PrivateKey     CyaSSL_PEM_read_bio_PrivateKey
00033 
00034 
00035 #ifdef __cplusplus
00036     }  /* extern "C" */ 
00037 #endif
00038 
00039 
00040 #endif /* CYASSL_PEM_H_ */
00041