mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
fix whitespace.
This commit is contained in:
@@ -1329,7 +1329,7 @@ static int DtlsSrtpSelProfiles(word16* id, const char* profile_str)
|
|||||||
const WOLFSSL_SRTP_PROTECTION_PROFILE* profile;
|
const WOLFSSL_SRTP_PROTECTION_PROFILE* profile;
|
||||||
const char *current, *next = NULL;
|
const char *current, *next = NULL;
|
||||||
word32 length = 0, current_length;
|
word32 length = 0, current_length;
|
||||||
|
|
||||||
*id = 0; /* reset destination ID's */
|
*id = 0; /* reset destination ID's */
|
||||||
|
|
||||||
if (profile_str == NULL) {
|
if (profile_str == NULL) {
|
||||||
|
@@ -5434,7 +5434,7 @@ static int TLSX_UseSRTP_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
|||||||
ato16(input + offset, &profile_value);
|
ato16(input + offset, &profile_value);
|
||||||
|
|
||||||
/* check that the profile received was in the ones we support */
|
/* check that the profile received was in the ones we support */
|
||||||
if (profile_value < 16 &&
|
if (profile_value < 16 &&
|
||||||
(ssl->dtlsSrtpProfiles & (1 << profile_value))) {
|
(ssl->dtlsSrtpProfiles & (1 << profile_value))) {
|
||||||
ssl->dtlsSrtpId = profile_value;
|
ssl->dtlsSrtpId = profile_value;
|
||||||
ret = 0; /* success */
|
ret = 0; /* success */
|
||||||
@@ -5448,7 +5448,7 @@ static int TLSX_UseSRTP_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
|||||||
for (i=offset; i<length; i+=OPAQUE16_LEN) {
|
for (i=offset; i<length; i+=OPAQUE16_LEN) {
|
||||||
ato16(input+i, &profile_value);
|
ato16(input+i, &profile_value);
|
||||||
/* find first match */
|
/* find first match */
|
||||||
if (profile_value < 16 &&
|
if (profile_value < 16 &&
|
||||||
ssl->dtlsSrtpProfiles & (1 << profile_value)) {
|
ssl->dtlsSrtpProfiles & (1 << profile_value)) {
|
||||||
ssl->dtlsSrtpId = profile_value;
|
ssl->dtlsSrtpId = profile_value;
|
||||||
|
|
||||||
|
@@ -1315,7 +1315,7 @@ typedef struct WOLFSSL_SRTP_PROTECTION_PROFILE {
|
|||||||
/* Compatibility API's for SRTP */
|
/* Compatibility API's for SRTP */
|
||||||
WOLFSSL_API int wolfSSL_CTX_set_tlsext_use_srtp(WOLFSSL_CTX*, const char*);
|
WOLFSSL_API int wolfSSL_CTX_set_tlsext_use_srtp(WOLFSSL_CTX*, const char*);
|
||||||
WOLFSSL_API int wolfSSL_set_tlsext_use_srtp(WOLFSSL*, const char*);
|
WOLFSSL_API int wolfSSL_set_tlsext_use_srtp(WOLFSSL*, const char*);
|
||||||
WOLFSSL_API const WOLFSSL_SRTP_PROTECTION_PROFILE*
|
WOLFSSL_API const WOLFSSL_SRTP_PROTECTION_PROFILE*
|
||||||
wolfSSL_get_selected_srtp_profile(WOLFSSL*);
|
wolfSSL_get_selected_srtp_profile(WOLFSSL*);
|
||||||
WOLFSSL_API WOLF_STACK_OF(WOLFSSL_SRTP_PROTECTION_PROFILE)*
|
WOLFSSL_API WOLF_STACK_OF(WOLFSSL_SRTP_PROTECTION_PROFILE)*
|
||||||
wolfSSL_get_srtp_profiles(WOLFSSL*);
|
wolfSSL_get_srtp_profiles(WOLFSSL*);
|
||||||
|
Reference in New Issue
Block a user