CyaSSL changed for NucleoF401RE board: implemented random and time functions for build. (Has trouble with wildcard domains like *.google.com, *.yahoo.com)

Fork of CyaSSL by wolf SSL

Committer:
Vanger
Date:
Wed Jan 14 22:07:14 2015 +0000
Revision:
4:e505054279ed
Parent:
0:1239e9b70ca2
Implemented some platform specific functions in the Cyassl library code: time functions, seed random functions, and also changed the settings.h file to define settings specific to the platform being used

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 0:1239e9b70ca2 1 /* pem.h for openssl */
wolfSSL 0:1239e9b70ca2 2
wolfSSL 0:1239e9b70ca2 3
wolfSSL 0:1239e9b70ca2 4 #ifndef CYASSL_PEM_H_
wolfSSL 0:1239e9b70ca2 5 #define CYASSL_PEM_H_
wolfSSL 0:1239e9b70ca2 6
wolfSSL 0:1239e9b70ca2 7 #include <cyassl/openssl/evp.h>
wolfSSL 0:1239e9b70ca2 8 #include <cyassl/openssl/bio.h>
wolfSSL 0:1239e9b70ca2 9 #include <cyassl/openssl/rsa.h>
wolfSSL 0:1239e9b70ca2 10 #include <cyassl/openssl/dsa.h>
wolfSSL 0:1239e9b70ca2 11
wolfSSL 0:1239e9b70ca2 12 #ifdef __cplusplus
wolfSSL 0:1239e9b70ca2 13 extern "C" {
wolfSSL 0:1239e9b70ca2 14 #endif
wolfSSL 0:1239e9b70ca2 15
wolfSSL 0:1239e9b70ca2 16
wolfSSL 0:1239e9b70ca2 17 CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
wolfSSL 0:1239e9b70ca2 18 const EVP_CIPHER* cipher,
wolfSSL 0:1239e9b70ca2 19 unsigned char* passwd, int len,
wolfSSL 0:1239e9b70ca2 20 pem_password_cb cb, void* arg);
wolfSSL 0:1239e9b70ca2 21
wolfSSL 0:1239e9b70ca2 22 CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
wolfSSL 0:1239e9b70ca2 23 const EVP_CIPHER* cipher,
wolfSSL 0:1239e9b70ca2 24 unsigned char* passwd, int len,
wolfSSL 0:1239e9b70ca2 25 pem_password_cb cb, void* arg);
wolfSSL 0:1239e9b70ca2 26
wolfSSL 0:1239e9b70ca2 27 CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
wolfSSL 0:1239e9b70ca2 28 CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg);
wolfSSL 0:1239e9b70ca2 29
wolfSSL 0:1239e9b70ca2 30 #define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
wolfSSL 0:1239e9b70ca2 31 #define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
wolfSSL 0:1239e9b70ca2 32 #define PEM_read_bio_PrivateKey CyaSSL_PEM_read_bio_PrivateKey
wolfSSL 0:1239e9b70ca2 33
wolfSSL 0:1239e9b70ca2 34
wolfSSL 0:1239e9b70ca2 35 #ifdef __cplusplus
wolfSSL 0:1239e9b70ca2 36 } /* extern "C" */
wolfSSL 0:1239e9b70ca2 37 #endif
wolfSSL 0:1239e9b70ca2 38
wolfSSL 0:1239e9b70ca2 39
wolfSSL 0:1239e9b70ca2 40 #endif /* CYASSL_PEM_H_ */
wolfSSL 0:1239e9b70ca2 41
wolfSSL 0:1239e9b70ca2 42