Chromium Code Reviews| 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 938 ** Did the handshake with the peer negotiate the given extension? | 938 ** Did the handshake with the peer negotiate the given extension? |
| 939 ** Output parameter valid only if function returns SECSuccess | 939 ** Output parameter valid only if function returns SECSuccess |
| 940 */ | 940 */ |
| 941 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket, | 941 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket, |
| 942 SSLExtensionType extId, | 942 SSLExtensionType extId, |
| 943 PRBool *yes); | 943 PRBool *yes); |
| 944 | 944 |
| 945 SSL_IMPORT SECStatus SSL_HandshakeResumedSession(PRFileDesc *fd, | 945 SSL_IMPORT SECStatus SSL_HandshakeResumedSession(PRFileDesc *fd, |
| 946 PRBool *last_handshake_resumed) ; | 946 PRBool *last_handshake_resumed) ; |
| 947 | 947 |
| 948 /* SSL_SetChannelD sets a P-256, ECC private key to use as the TLS Channel ID. | |
|
wtc
2012/05/24 23:10:03
"Channel ID" is not specific enough. I think we sh
agl
2012/05/30 15:28:33
Done.
| |
| 949 * This is only applicable to client sockets and is only effective when the | |
| 950 * server supports TLS Channel ID. Note that this function takes ownership of | |
| 951 * |id| and |pub|. */ | |
| 952 SSL_IMPORT SECStatus SSL_SetChannelD(PRFileDesc *fd, SECKEYPrivateKey *id, | |
|
wtc
2012/05/24 23:10:03
Typo: SSL_SetChannelD => SSL_SetChannelID
The com
agl
2012/05/30 15:28:33
Done.
| |
| 953 SECKEYPublicKey *pub); | |
| 954 | |
| 948 /* | 955 /* |
| 949 ** How long should we wait before retransmitting the next flight of | 956 ** How long should we wait before retransmitting the next flight of |
| 950 ** the DTLS handshake? Returns SECFailure if not DTLS or not in a | 957 ** the DTLS handshake? Returns SECFailure if not DTLS or not in a |
| 951 ** handshake. | 958 ** handshake. |
| 952 */ | 959 */ |
| 953 SSL_IMPORT SECStatus DTLS_GetTimeout(PRFileDesc *socket, | 960 SSL_IMPORT SECStatus DTLS_GetTimeout(PRFileDesc *socket, |
| 954 PRIntervalTime *timeout); | 961 PRIntervalTime *timeout); |
| 955 | 962 |
| 956 /* | 963 /* |
| 957 * Return a boolean that indicates whether the underlying library | 964 * Return a boolean that indicates whether the underlying library |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1029 * should continue using the connection. If the application passes a non-zero | 1036 * should continue using the connection. If the application passes a non-zero |
| 1030 * value for second argument (error), or if SSL_AuthCertificateComplete returns | 1037 * value for second argument (error), or if SSL_AuthCertificateComplete returns |
| 1031 * anything other than SECSuccess, then the application should close the | 1038 * anything other than SECSuccess, then the application should close the |
| 1032 * connection. | 1039 * connection. |
| 1033 */ | 1040 */ |
| 1034 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, | 1041 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, |
| 1035 PRErrorCode error); | 1042 PRErrorCode error); |
| 1036 SEC_END_PROTOS | 1043 SEC_END_PROTOS |
| 1037 | 1044 |
| 1038 #endif /* __ssl_h_ */ | 1045 #endif /* __ssl_h_ */ |
| OLD | NEW |