Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: net/third_party/nss/ssl/ssl.h

Issue 9982019: Implement RFC 5764 (DTLS-SRTP). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/third_party/nss/ssl/ssl3ext.c » ('j') | net/third_party/nss/ssl/ssl3ext.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/ssl/ssl.h
===================================================================
--- net/third_party/nss/ssl/ssl.h (revision 130750)
+++ net/third_party/nss/ssl/ssl.h (working copy)
@@ -835,7 +835,26 @@
struct CERTCertificateStr ** pRetCert,
struct SECKEYPrivateKeyStr **pRetKey);
+
/*
+** Configure DTLS-SRTP (RFC 5764) preferences.
+** Input is a list of ciphers and a length of the list in descending
+** preference order. As a side effect, this causes the use_srtp
+** extension to be negotiated.
+*/
+SSL_IMPORT SECStatus SSL_SetSRTPCiphers(PRFileDesc *socket,
+ const PRUint16 *ciphers,
+ unsigned int num_ciphers);
+
+/*
+** Get the selected DTLS-SRTP cipher suite (if any).
+** To be called after the handshake completes.
+** Returns SECFailed if not negotiated.
+*/
+SSL_IMPORT SECStatus SSL_GetSRTPCipher(PRFileDesc *socket,
+ PRUint16 *cipher);
+
+/*
* Look to see if any of the signers in the cert chain for "cert" are found
* in the list of caNames.
* Returns SECSuccess if so, SECFailure if not.
« no previous file with comments | « no previous file | net/third_party/nss/ssl/ssl3ext.c » ('j') | net/third_party/nss/ssl/ssl3ext.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698