summaryrefslogtreecommitdiff
path: root/modules/libsrtp/sdes.h
blob: 8c2c1f909d5f7c5e8e57731b11e6574753c01b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * @file libsrtp/sdes.h  SDP Security Descriptions (RFC 4568) API
 *
 * Copyright (C) 2010 Creytiv.com
 */


struct crypto {
	uint32_t tag;
	struct pl suite;
	struct pl key_method;
	struct pl key_info;
	struct pl lifetime;  /* optional */
	struct pl mki;       /* optional */
	struct pl sess_prms; /* optional */
};


int libsrtp_sdes_encode_crypto(struct sdp_media *m, uint32_t tag,
			       const char *suite,
			       const char *key, size_t key_len);
int libsrtp_sdes_decode_crypto(struct crypto *c, const char *val);