mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-29 17:22:12 +01:00
cmake.yml: fix error and run tests with ctest
This commit is contained in:
committed by
Daniel Pouzzner
parent
825ca22bd8
commit
7380ec68bb
19
src/ssl.c
19
src/ssl.c
@@ -2152,6 +2152,15 @@ static int DtlsSrtpSelProfiles(word16* id, const char* profile_str)
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the SRTP protection profiles for DTLS.
|
||||
*
|
||||
* @param ctx Pointer to the WOLFSSL_CTX structure representing the SSL/TLS
|
||||
* context.
|
||||
* @param profile_str A colon-separated string of SRTP profile names.
|
||||
* @return 0 on success to match OpenSSL
|
||||
* @return 1 on error to match OpenSSL
|
||||
*/
|
||||
int wolfSSL_CTX_set_tlsext_use_srtp(WOLFSSL_CTX* ctx, const char* profile_str)
|
||||
{
|
||||
int ret = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
|
||||
@@ -2167,6 +2176,16 @@ int wolfSSL_CTX_set_tlsext_use_srtp(WOLFSSL_CTX* ctx, const char* profile_str)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the SRTP protection profiles for DTLS.
|
||||
*
|
||||
* @param ssl Pointer to the WOLFSSL structure representing the SSL/TLS
|
||||
* session.
|
||||
* @param profile_str A colon-separated string of SRTP profile names.
|
||||
* @return 0 on success to match OpenSSL
|
||||
* @return 1 on error to match OpenSSL
|
||||
*/
|
||||
int wolfSSL_set_tlsext_use_srtp(WOLFSSL* ssl, const char* profile_str)
|
||||
{
|
||||
int ret = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user