mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
wrapper: introduce SSL_get0_param
This adds the standard OpenSSL api to get a pointer to the SSL struct's X509_VERIFY_PARAM. We need this for the OpenSSL api to set the peer hostname introduced in the next patch.
This commit is contained in:
parent
d78c93254b
commit
43b3141f93
2 changed files with 18 additions and 0 deletions
|
@ -1513,6 +1513,15 @@ long SSL_get_timeout(const SSL *ssl);
|
|||
*/
|
||||
int SSL_get_verify_mode(const SSL *ssl);
|
||||
|
||||
/**
|
||||
* @brief get SSL verify parameters
|
||||
*
|
||||
* @param ssl - SSL point
|
||||
*
|
||||
* @return verify parameters
|
||||
*/
|
||||
X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
|
||||
|
||||
/**
|
||||
* @brief get SSL write only IO handle
|
||||
*
|
||||
|
|
|
@ -117,6 +117,15 @@ failed1:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief return SSL X509 verify parameters
|
||||
*/
|
||||
|
||||
X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl)
|
||||
{
|
||||
return &ssl->param;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief set SSL context client CA certification
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue