forked from wolfSSL/wolfssl
cmake.yml: fix error and run tests with ctest
This commit is contained in:
committed by
Daniel Pouzzner
parent
825ca22bd8
commit
7380ec68bb
1
.github/workflows/cmake.yml
vendored
1
.github/workflows/cmake.yml
vendored
@@ -81,6 +81,7 @@ jobs:
|
|||||||
-DCMAKE_C_FLAGS="-DWOLFSSL_DTLS_CH_FRAG" \
|
-DCMAKE_C_FLAGS="-DWOLFSSL_DTLS_CH_FRAG" \
|
||||||
..
|
..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
ctest -j $(nproc)
|
||||||
cmake --install .
|
cmake --install .
|
||||||
|
|
||||||
# Kyber Cmake broken
|
# Kyber Cmake broken
|
||||||
|
@@ -3280,7 +3280,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
#ifdef WOLFSSL_SRTP
|
#ifdef WOLFSSL_SRTP
|
||||||
if (dtlsSrtpProfiles != NULL) {
|
if (dtlsSrtpProfiles != NULL) {
|
||||||
if (wolfSSL_CTX_set_tlsext_use_srtp(ctx, dtlsSrtpProfiles)
|
if (wolfSSL_CTX_set_tlsext_use_srtp(ctx, dtlsSrtpProfiles)
|
||||||
!= WOLFSSL_SUCCESS) {
|
!= 0) {
|
||||||
err_sys("unable to set DTLS SRTP profile");
|
err_sys("unable to set DTLS SRTP profile");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2680,7 +2680,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
#ifdef WOLFSSL_SRTP
|
#ifdef WOLFSSL_SRTP
|
||||||
if (dtlsSrtpProfiles != NULL) {
|
if (dtlsSrtpProfiles != NULL) {
|
||||||
if (wolfSSL_CTX_set_tlsext_use_srtp(ctx, dtlsSrtpProfiles)
|
if (wolfSSL_CTX_set_tlsext_use_srtp(ctx, dtlsSrtpProfiles)
|
||||||
!= WOLFSSL_SUCCESS) {
|
!= 0) {
|
||||||
err_sys_ex(catastrophic, "unable to set DTLS SRTP profile");
|
err_sys_ex(catastrophic, "unable to set DTLS SRTP profile");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
19
src/ssl.c
19
src/ssl.c
@@ -2152,6 +2152,15 @@ static int DtlsSrtpSelProfiles(word16* id, const char* profile_str)
|
|||||||
return WOLFSSL_SUCCESS;
|
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 wolfSSL_CTX_set_tlsext_use_srtp(WOLFSSL_CTX* ctx, const char* profile_str)
|
||||||
{
|
{
|
||||||
int ret = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
|
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;
|
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 wolfSSL_set_tlsext_use_srtp(WOLFSSL* ssl, const char* profile_str)
|
||||||
{
|
{
|
||||||
int ret = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
|
int ret = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
|
||||||
|
Reference in New Issue
Block a user