Corrected bugs in record parsing.
[gnutls.git] / lib / ext / srtp.h
blob5e9d6cff01f346fa46b7bc714331fe45f4861957
1 /*
2 * Copyright (C) 2012 Free Software Foundation
4 * Author: Martin Storsjo
6 * This file is part of GnuTLS.
8 * The GnuTLS is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
22 #ifndef EXT_SRTP_H
23 #define EXT_SRTP_H
25 #include <gnutls_extensions.h>
27 #define MAX_SRTP_PROFILES 4
29 typedef struct
31 gnutls_srtp_profile_t profiles[MAX_SRTP_PROFILES];
32 unsigned profiles_size;
33 gnutls_srtp_profile_t selected_profile;
34 uint8_t mki[256];
35 unsigned mki_size;
36 unsigned int mki_received;
37 } srtp_ext_st;
39 extern extension_entry_st ext_mod_srtp;
41 #endif