]> git.sesse.net Git - vlc/blobdiff - libs/srtp/srtp.h
SRTP: support for parsing key and salt from a string
[vlc] / libs / srtp / srtp.h
index 7d92d8b9eefc290244881567467df8dd020ad0ee..0e4367f664fbc465c2e194978597eff60b007269 100644 (file)
@@ -66,6 +66,8 @@ void srtp_destroy (srtp_session_t *s);
 
 int srtp_setkey (srtp_session_t *s, const void *key, size_t keylen,
                  const void *salt, size_t saltlen);
+int srtp_setkeystring (srtp_session_t *s, const char *key, const char *salt);
+
 void srtp_setrcc_rate (srtp_session_t *s, uint16_t rate);
 
 int srtp_send (srtp_session_t *s, uint8_t *buf, size_t *lenp, size_t maxsize);