| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 * a suitable match and send it if one is found. | 827 * a suitable match and send it if one is found. |
| 828 */ | 828 */ |
| 829 SSL_IMPORT SECStatus | 829 SSL_IMPORT SECStatus |
| 830 NSS_GetClientAuthData(void * arg, | 830 NSS_GetClientAuthData(void * arg, |
| 831 PRFileDesc * socket, | 831 PRFileDesc * socket, |
| 832 struct CERTDistNamesStr * caNames, | 832 struct CERTDistNamesStr * caNames, |
| 833 struct CERTCertificateStr ** pRetCert, | 833 struct CERTCertificateStr ** pRetCert, |
| 834 struct SECKEYPrivateKeyStr **pRetKey); | 834 struct SECKEYPrivateKeyStr **pRetKey); |
| 835 | 835 |
| 836 /* | 836 /* |
| 837 ** Configure DTLS-SRTP (RFC 5764) cipher suite preferences. |
| 838 ** Input is a list of ciphers in descending preference order and a length |
| 839 ** of the list. As a side effect, this causes the use_srtp extension to be |
| 840 ** negotiated. |
| 841 ** |
| 842 ** Invalid or unimplemented cipher suites in |ciphers| are ignored. If at |
| 843 ** least one cipher suite in |ciphers| is implemented, returns SECSuccess. |
| 844 ** Otherwise returns SECFailure. |
| 845 */ |
| 846 SSL_IMPORT SECStatus SSL_SetSRTPCiphers(PRFileDesc *fd, |
| 847 const PRUint16 *ciphers, |
| 848 unsigned int numCiphers); |
| 849 |
| 850 /* |
| 851 ** Get the selected DTLS-SRTP cipher suite (if any). |
| 852 ** To be called after the handshake completes. |
| 853 ** Returns SECFailure if not negotiated. |
| 854 */ |
| 855 SSL_IMPORT SECStatus SSL_GetSRTPCipher(PRFileDesc *fd, |
| 856 PRUint16 *cipher); |
| 857 |
| 858 /* |
| 837 * Look to see if any of the signers in the cert chain for "cert" are found | 859 * Look to see if any of the signers in the cert chain for "cert" are found |
| 838 * in the list of caNames. | 860 * in the list of caNames. |
| 839 * Returns SECSuccess if so, SECFailure if not. | 861 * Returns SECSuccess if so, SECFailure if not. |
| 840 * Used by NSS_GetClientAuthData. May be used by other callback functions. | 862 * Used by NSS_GetClientAuthData. May be used by other callback functions. |
| 841 */ | 863 */ |
| 842 SSL_IMPORT SECStatus NSS_CmpCertChainWCANames(CERTCertificate *cert, | 864 SSL_IMPORT SECStatus NSS_CmpCertChainWCANames(CERTCertificate *cert, |
| 843 CERTDistNames *caNames); | 865 CERTDistNames *caNames); |
| 844 | 866 |
| 845 /* | 867 /* |
| 846 * Returns key exchange type of the keys in an SSL server certificate. | 868 * Returns key exchange type of the keys in an SSL server certificate. |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 * should continue using the connection. If the application passes a non-zero | 1070 * should continue using the connection. If the application passes a non-zero |
| 1049 * value for second argument (error), or if SSL_AuthCertificateComplete returns | 1071 * value for second argument (error), or if SSL_AuthCertificateComplete returns |
| 1050 * anything other than SECSuccess, then the application should close the | 1072 * anything other than SECSuccess, then the application should close the |
| 1051 * connection. | 1073 * connection. |
| 1052 */ | 1074 */ |
| 1053 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, | 1075 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, |
| 1054 PRErrorCode error); | 1076 PRErrorCode error); |
| 1055 SEC_END_PROTOS | 1077 SEC_END_PROTOS |
| 1056 | 1078 |
| 1057 #endif /* __ssl_h_ */ | 1079 #endif /* __ssl_h_ */ |
| OLD | NEW |