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

Side by Side Diff: net/third_party/nss/ssl/ssl.h

Issue 10424013: Support TLS Channel IDs in NSS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resync from trunk Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 /* See SSL_SetClientChannelIDCallback for usage. The callback must return
949 * SECFailure or SECSuccess (not SECWouldBlock). On SECSuccess, the callback
950 * must have written a P-256 key pair to |out_public_key| and
wtc 2012/05/31 00:36:32 Nit: add "EC" after "P-256" Nit: add '*' to |out_
agl 2012/05/31 17:19:53 Done.
951 * |out_private_key|. */
952 typedef SECStatus (PR_CALLBACK *SSLClientChannelIDCallback)(
953 void *arg,
954 PRFileDesc *fd,
955 SECKEYPublicKey **out_public_key,
956 SECKEYPrivateKey **out_private_key);
957
958 /* SSL_SetClientChannelIDCallback sets a callback function that will be called
959 * just before a Channel ID is sent. This is only applicable to a client socket
960 * and setting this callback causes the TLS Channel ID extension to be
961 * advertised. */
962 SSL_IMPORT SECStatus SSL_SetClientChannelIDCallback(
963 PRFileDesc *fd,
964 SSLClientChannelIDCallback callback,
965 void *arg);
966
948 /* 967 /*
949 ** How long should we wait before retransmitting the next flight of 968 ** How long should we wait before retransmitting the next flight of
950 ** the DTLS handshake? Returns SECFailure if not DTLS or not in a 969 ** the DTLS handshake? Returns SECFailure if not DTLS or not in a
951 ** handshake. 970 ** handshake.
952 */ 971 */
953 SSL_IMPORT SECStatus DTLS_GetTimeout(PRFileDesc *socket, 972 SSL_IMPORT SECStatus DTLS_GetTimeout(PRFileDesc *socket,
954 PRIntervalTime *timeout); 973 PRIntervalTime *timeout);
955 974
956 /* 975 /*
957 * Return a boolean that indicates whether the underlying library 976 * Return a boolean that indicates whether the underlying library
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 * should continue using the connection. If the application passes a non-zero 1048 * should continue using the connection. If the application passes a non-zero
1030 * value for second argument (error), or if SSL_AuthCertificateComplete returns 1049 * value for second argument (error), or if SSL_AuthCertificateComplete returns
1031 * anything other than SECSuccess, then the application should close the 1050 * anything other than SECSuccess, then the application should close the
1032 * connection. 1051 * connection.
1033 */ 1052 */
1034 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, 1053 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd,
1035 PRErrorCode error); 1054 PRErrorCode error);
1036 SEC_END_PROTOS 1055 SEC_END_PROTOS
1037 1056
1038 #endif /* __ssl_h_ */ 1057 #endif /* __ssl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698