| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file contains prototypes for the public SSL functions. | 2 * This file contains prototypes for the public SSL functions. |
| 3 * | 3 * |
| 4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 * If arg is NULL, this function will search the cert and key databases for | 828 * If arg is NULL, this function will search the cert and key databases for |
| 829 * a suitable match and send it if one is found. | 829 * a suitable match and send it if one is found. |
| 830 */ | 830 */ |
| 831 SSL_IMPORT SECStatus | 831 SSL_IMPORT SECStatus |
| 832 NSS_GetClientAuthData(void * arg, | 832 NSS_GetClientAuthData(void * arg, |
| 833 PRFileDesc * socket, | 833 PRFileDesc * socket, |
| 834 struct CERTDistNamesStr * caNames, | 834 struct CERTDistNamesStr * caNames, |
| 835 struct CERTCertificateStr ** pRetCert, | 835 struct CERTCertificateStr ** pRetCert, |
| 836 struct SECKEYPrivateKeyStr **pRetKey); | 836 struct SECKEYPrivateKeyStr **pRetKey); |
| 837 | 837 |
| 838 |
| 839 /* |
| 840 ** Configure DTLS-SRTP (RFC 5764) preferences. |
| 841 ** Input is a list of ciphers and a length of the list in descending |
| 842 ** preference order. As a side effect, this causes the use_srtp |
| 843 ** extension to be negotiated. |
| 844 */ |
| 845 SSL_IMPORT SECStatus SSL_SetSRTPCiphers(PRFileDesc *socket, |
| 846 const PRUint16 *ciphers, |
| 847 unsigned int num_ciphers); |
| 848 |
| 849 /* |
| 850 ** Get the selected DTLS-SRTP cipher suite (if any). |
| 851 ** To be called after the handshake completes. |
| 852 ** Returns SECFailed if not negotiated. |
| 853 */ |
| 854 SSL_IMPORT SECStatus SSL_GetSRTPCipher(PRFileDesc *socket, |
| 855 PRUint16 *cipher); |
| 856 |
| 838 /* | 857 /* |
| 839 * Look to see if any of the signers in the cert chain for "cert" are found | 858 * Look to see if any of the signers in the cert chain for "cert" are found |
| 840 * in the list of caNames. | 859 * in the list of caNames. |
| 841 * Returns SECSuccess if so, SECFailure if not. | 860 * Returns SECSuccess if so, SECFailure if not. |
| 842 * Used by NSS_GetClientAuthData. May be used by other callback functions. | 861 * Used by NSS_GetClientAuthData. May be used by other callback functions. |
| 843 */ | 862 */ |
| 844 SSL_IMPORT SECStatus NSS_CmpCertChainWCANames(CERTCertificate *cert, | 863 SSL_IMPORT SECStatus NSS_CmpCertChainWCANames(CERTCertificate *cert, |
| 845 CERTDistNames *caNames); | 864 CERTDistNames *caNames); |
| 846 | 865 |
| 847 /* | 866 /* |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 * should continue using the connection. If the application passes a non-zero | 1050 * should continue using the connection. If the application passes a non-zero |
| 1032 * value for second argument (error), or if SSL_AuthCertificateComplete returns | 1051 * value for second argument (error), or if SSL_AuthCertificateComplete returns |
| 1033 * anything other than SECSuccess, then the application should close the | 1052 * anything other than SECSuccess, then the application should close the |
| 1034 * connection. | 1053 * connection. |
| 1035 */ | 1054 */ |
| 1036 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, | 1055 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, |
| 1037 PRErrorCode error); | 1056 PRErrorCode error); |
| 1038 SEC_END_PROTOS | 1057 SEC_END_PROTOS |
| 1039 | 1058 |
| 1040 #endif /* __ssl_h_ */ | 1059 #endif /* __ssl_h_ */ |
| OLD | NEW |