2011-02-05 22:14:47 +03:00
|
|
|
/* pem.h for openssl */
|
|
|
|
|
2012-04-27 03:27:27 +04:00
|
|
|
|
|
|
|
#ifndef CYASSL_PEM_H_
|
|
|
|
#define CYASSL_PEM_H_
|
|
|
|
|
|
|
|
#include <cyassl/openssl/evp.h>
|
|
|
|
#include <cyassl/openssl/bio.h>
|
|
|
|
#include <cyassl/openssl/rsa.h>
|
|
|
|
#include <cyassl/openssl/dsa.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2012-05-02 03:12:12 +04:00
|
|
|
CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
|
2012-04-27 03:27:27 +04:00
|
|
|
const EVP_CIPHER* cipher,
|
|
|
|
unsigned char* passwd, int len,
|
|
|
|
pem_password_cb cb, void* arg);
|
|
|
|
|
2012-05-02 03:12:12 +04:00
|
|
|
CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
|
2012-04-27 03:27:27 +04:00
|
|
|
const EVP_CIPHER* cipher,
|
|
|
|
unsigned char* passwd, int len,
|
|
|
|
pem_password_cb cb, void* arg);
|
|
|
|
|
2012-05-02 03:12:12 +04:00
|
|
|
CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
|
2012-04-27 03:27:27 +04:00
|
|
|
CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg);
|
|
|
|
|
|
|
|
#define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
|
|
|
|
#define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
|
|
|
|
#define PEM_read_bio_PrivateKey CyaSSL_PEM_read_bio_PrivateKey
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* CYASSL_PEM_H_ */
|
|
|
|
|