components/openssl: add some function description

This commit is contained in:
Dong Heng
2016-09-27 18:50:57 +08:00
parent 652ddae44f
commit 877adaab7a
3 changed files with 50 additions and 0 deletions

View File

@@ -64,6 +64,21 @@ EVP_PKEY* d2i_PrivateKey(int type,
*/
void EVP_PKEY_free(EVP_PKEY *x);
/**
* @brief load private key into the SSL
*
* @param type - private key type
* @param ssl - SSL point
* @param len - data bytes
* @param d - data point
*
* @return result
* 0 : failed
* 1 : OK
*/
int SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len);
#ifdef __cplusplus
}
#endif