Blame lib/ext/srtp.h

Packit aea12f
/*
Packit aea12f
 * Copyright (C) 2012 Free Software Foundation
Packit aea12f
 *
Packit aea12f
 * Author: Martin Storsjo
Packit aea12f
 *
Packit aea12f
 * This file is part of GnuTLS.
Packit aea12f
 *
Packit aea12f
 * The GnuTLS is free software; you can redistribute it and/or
Packit aea12f
 * modify it under the terms of the GNU Lesser General Public License
Packit aea12f
 * as published by the Free Software Foundation; either version 2.1 of
Packit aea12f
 * the License, or (at your option) any later version.
Packit aea12f
 *
Packit aea12f
 * This library is distributed in the hope that it will be useful, but
Packit aea12f
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit aea12f
 * Lesser General Public License for more details.
Packit aea12f
 *
Packit aea12f
 * You should have received a copy of the GNU Lesser General Public License
Packit aea12f
 * along with this program.  If not, see <https://www.gnu.org/licenses/>
Packit aea12f
 *
Packit aea12f
 */
Packit aea12f
Packit aea12f
#ifndef GNUTLS_LIB_EXT_SRTP_H
Packit aea12f
#define GNUTLS_LIB_EXT_SRTP_H
Packit aea12f
#ifndef EXT_SRTP_H
Packit aea12f
#define EXT_SRTP_H
Packit aea12f
Packit aea12f
#include <hello_ext.h>
Packit aea12f
Packit aea12f
#define MAX_SRTP_PROFILES 4
Packit aea12f
Packit aea12f
typedef struct {
Packit aea12f
	gnutls_srtp_profile_t profiles[MAX_SRTP_PROFILES];
Packit aea12f
	unsigned profiles_size;
Packit aea12f
	gnutls_srtp_profile_t selected_profile;
Packit aea12f
	uint8_t mki[256];
Packit aea12f
	unsigned mki_size;
Packit aea12f
	unsigned int mki_received;
Packit aea12f
} srtp_ext_st;
Packit aea12f
Packit aea12f
extern const hello_ext_entry_st ext_mod_srtp;
Packit aea12f
Packit aea12f
#endif
Packit aea12f
Packit aea12f
#endif /* GNUTLS_LIB_EXT_SRTP_H */