mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-31 11:40:51 -04:00 
			
		
		
		
	mbedtls_ssl_get_srtp_profile_as_string declared and defined in ssl.h
Signed-off-by: Johan Pascal <johan.pascal@belledonne-communications.com>
This commit is contained in:
		
							parent
							
								
									f6417ecf60
								
							
						
					
					
						commit
						a455cd9a47
					
				| @ -3184,6 +3184,24 @@ const char *mbedtls_ssl_get_alpn_protocol( const mbedtls_ssl_context *ssl ); | |||||||
| #endif /* MBEDTLS_SSL_ALPN */ | #endif /* MBEDTLS_SSL_ALPN */ | ||||||
| 
 | 
 | ||||||
| #if defined(MBEDTLS_SSL_DTLS_SRTP) | #if defined(MBEDTLS_SSL_DTLS_SRTP) | ||||||
|  | #if defined(MBEDTLS_DEBUG_C) | ||||||
|  | static inline const char *mbedtls_ssl_get_srtp_profile_as_string ( mbedtls_ssl_srtp_profile profile ) | ||||||
|  | { | ||||||
|  |     switch( profile ) | ||||||
|  |     { | ||||||
|  |         case MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80: | ||||||
|  |             return "MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80"; | ||||||
|  |         case MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_32: | ||||||
|  |             return "MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_32"; | ||||||
|  |         case MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_80: | ||||||
|  |             return "MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_80"; | ||||||
|  |         case MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_32: | ||||||
|  |             return "MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_32"; | ||||||
|  |         default: break; | ||||||
|  |     } | ||||||
|  |     return( "" ); | ||||||
|  | } | ||||||
|  | #endif /* MBEDTLS_DEBUG_C */ | ||||||
| /**
 | /**
 | ||||||
|  * \brief                   Manage support for mki(master key id) value |  * \brief                   Manage support for mki(master key id) value | ||||||
|  *                          in use_srtp extension. |  *                          in use_srtp extension. | ||||||
|  | |||||||
| @ -1096,10 +1096,6 @@ int mbedtls_ssl_check_sig_hash( const mbedtls_ssl_context *ssl, | |||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if defined(MBEDTLS_SSL_DTLS_SRTP) | #if defined(MBEDTLS_SSL_DTLS_SRTP) | ||||||
| #if defined(MBEDTLS_DEBUG_C) |  | ||||||
| const char *mbedtls_ssl_get_srtp_profile_as_string ( mbedtls_ssl_srtp_profile profile ); |  | ||||||
| #endif /* MBEDTLS_DEBUG_C */ |  | ||||||
| 
 |  | ||||||
| static inline mbedtls_ssl_srtp_profile mbedtls_ssl_check_srtp_profile_value | static inline mbedtls_ssl_srtp_profile mbedtls_ssl_check_srtp_profile_value | ||||||
|                                                     ( const uint16_t srtp_profile_value ) |                                                     ( const uint16_t srtp_profile_value ) | ||||||
| { | { | ||||||
|  | |||||||
| @ -4690,25 +4690,6 @@ const char *mbedtls_ssl_get_alpn_protocol( const mbedtls_ssl_context *ssl ) | |||||||
| #endif /* MBEDTLS_SSL_ALPN */ | #endif /* MBEDTLS_SSL_ALPN */ | ||||||
| 
 | 
 | ||||||
| #if defined(MBEDTLS_SSL_DTLS_SRTP) | #if defined(MBEDTLS_SSL_DTLS_SRTP) | ||||||
| #if defined(MBEDTLS_DEBUG_C) |  | ||||||
| const char *mbedtls_ssl_get_srtp_profile_as_string ( mbedtls_ssl_srtp_profile profile ) |  | ||||||
| { |  | ||||||
|     switch( profile ) |  | ||||||
|     { |  | ||||||
|         case MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80: |  | ||||||
|             return "MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80"; |  | ||||||
|         case MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_32: |  | ||||||
|             return "MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_32"; |  | ||||||
|         case MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_80: |  | ||||||
|             return "MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_80"; |  | ||||||
|         case MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_32: |  | ||||||
|             return "MBEDTLS_TLS_SRTP_NULL_HMAC_SHA1_32"; |  | ||||||
|         default: break; |  | ||||||
|     } |  | ||||||
|     return( "" ); |  | ||||||
| } |  | ||||||
| #endif /* MBEDTLS_DEBUG_C */ |  | ||||||
| 
 |  | ||||||
| void mbedtls_ssl_conf_srtp_mki_value_supported( mbedtls_ssl_config *conf, | void mbedtls_ssl_conf_srtp_mki_value_supported( mbedtls_ssl_config *conf, | ||||||
|                                                 int support_mki_value ) |                                                 int support_mki_value ) | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Johan Pascal
						Johan Pascal