1*e71b7053SJung-uk Kim /* 2*e71b7053SJung-uk Kim * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved. 3*e71b7053SJung-uk Kim * 4*e71b7053SJung-uk Kim * Licensed under the OpenSSL license (the "License"). You may not use 5*e71b7053SJung-uk Kim * this file except in compliance with the License. You can obtain a copy 6*e71b7053SJung-uk Kim * in the file LICENSE in the source distribution or at 7*e71b7053SJung-uk Kim * https://www.openssl.org/source/license.html 8*e71b7053SJung-uk Kim */ 9*e71b7053SJung-uk Kim 10*e71b7053SJung-uk Kim /* 11*e71b7053SJung-uk Kim * DTLS code by Eric Rescorla <ekr@rtfm.com> 12*e71b7053SJung-uk Kim * 13*e71b7053SJung-uk Kim * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc. 14*e71b7053SJung-uk Kim */ 15*e71b7053SJung-uk Kim 16*e71b7053SJung-uk Kim #ifndef HEADER_D1_SRTP_H 17*e71b7053SJung-uk Kim # define HEADER_D1_SRTP_H 18*e71b7053SJung-uk Kim 19*e71b7053SJung-uk Kim # include <openssl/ssl.h> 20*e71b7053SJung-uk Kim 21*e71b7053SJung-uk Kim #ifdef __cplusplus 22*e71b7053SJung-uk Kim extern "C" { 23*e71b7053SJung-uk Kim #endif 24*e71b7053SJung-uk Kim 25*e71b7053SJung-uk Kim # define SRTP_AES128_CM_SHA1_80 0x0001 26*e71b7053SJung-uk Kim # define SRTP_AES128_CM_SHA1_32 0x0002 27*e71b7053SJung-uk Kim # define SRTP_AES128_F8_SHA1_80 0x0003 28*e71b7053SJung-uk Kim # define SRTP_AES128_F8_SHA1_32 0x0004 29*e71b7053SJung-uk Kim # define SRTP_NULL_SHA1_80 0x0005 30*e71b7053SJung-uk Kim # define SRTP_NULL_SHA1_32 0x0006 31*e71b7053SJung-uk Kim 32*e71b7053SJung-uk Kim /* AEAD SRTP protection profiles from RFC 7714 */ 33*e71b7053SJung-uk Kim # define SRTP_AEAD_AES_128_GCM 0x0007 34*e71b7053SJung-uk Kim # define SRTP_AEAD_AES_256_GCM 0x0008 35*e71b7053SJung-uk Kim 36*e71b7053SJung-uk Kim # ifndef OPENSSL_NO_SRTP 37*e71b7053SJung-uk Kim 38*e71b7053SJung-uk Kim __owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); 39*e71b7053SJung-uk Kim __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); 40*e71b7053SJung-uk Kim 41*e71b7053SJung-uk Kim __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); 42*e71b7053SJung-uk Kim __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s); 43*e71b7053SJung-uk Kim 44*e71b7053SJung-uk Kim # endif 45*e71b7053SJung-uk Kim 46*e71b7053SJung-uk Kim #ifdef __cplusplus 47*e71b7053SJung-uk Kim } 48*e71b7053SJung-uk Kim #endif 49*e71b7053SJung-uk Kim 50*e71b7053SJung-uk Kim #endif 51