1
0

pem.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* pem.h for openssl */
  2. #ifndef CYASSL_PEM_H_
  3. #define CYASSL_PEM_H_
  4. #include <cyassl/openssl/evp.h>
  5. #include <cyassl/openssl/bio.h>
  6. #include <cyassl/openssl/rsa.h>
  7. #include <cyassl/openssl/dsa.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
  12. const EVP_CIPHER* cipher,
  13. unsigned char* passwd, int len,
  14. pem_password_cb cb, void* arg);
  15. CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
  16. const EVP_CIPHER* cipher,
  17. unsigned char* passwd, int len,
  18. pem_password_cb cb, void* arg);
  19. CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
  20. CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg);
  21. #define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
  22. #define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
  23. #define PEM_read_bio_PrivateKey CyaSSL_PEM_read_bio_PrivateKey
  24. #ifdef __cplusplus
  25. } /* extern "C" */
  26. #endif
  27. #endif /* CYASSL_PEM_H_ */