jpayne@69: /* jpayne@69: * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved. jpayne@69: * jpayne@69: * Licensed under the OpenSSL license (the "License"). You may not use jpayne@69: * this file except in compliance with the License. You can obtain a copy jpayne@69: * in the file LICENSE in the source distribution or at jpayne@69: * https://www.openssl.org/source/license.html jpayne@69: */ jpayne@69: jpayne@69: /* jpayne@69: * DTLS code by Eric Rescorla jpayne@69: * jpayne@69: * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc. jpayne@69: */ jpayne@69: jpayne@69: #ifndef HEADER_D1_SRTP_H jpayne@69: # define HEADER_D1_SRTP_H jpayne@69: jpayne@69: # include jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: # define SRTP_AES128_CM_SHA1_80 0x0001 jpayne@69: # define SRTP_AES128_CM_SHA1_32 0x0002 jpayne@69: # define SRTP_AES128_F8_SHA1_80 0x0003 jpayne@69: # define SRTP_AES128_F8_SHA1_32 0x0004 jpayne@69: # define SRTP_NULL_SHA1_80 0x0005 jpayne@69: # define SRTP_NULL_SHA1_32 0x0006 jpayne@69: jpayne@69: /* AEAD SRTP protection profiles from RFC 7714 */ jpayne@69: # define SRTP_AEAD_AES_128_GCM 0x0007 jpayne@69: # define SRTP_AEAD_AES_256_GCM 0x0008 jpayne@69: jpayne@69: # ifndef OPENSSL_NO_SRTP jpayne@69: jpayne@69: __owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); jpayne@69: __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); jpayne@69: jpayne@69: __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); jpayne@69: __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s); jpayne@69: jpayne@69: # endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif