/external/chromium_org/net/third_party/nss/ssl/ |
D | sslimpl.h | 176 typedef struct sslSocketStr sslSocket; typedef 190 typedef SECStatus (*sslHandshakeFunc)(sslSocket *ss); 197 typedef PRInt32 (*sslSendFunc)(sslSocket *ss, const unsigned char *buf, 210 typedef PRInt32 (*ssl3HelloExtensionSenderFunc)(sslSocket *ss, PRBool append, 216 typedef SECStatus (* ssl3HelloExtensionHandlerFunc)(sslSocket *ss, 233 ssl3_RegisterServerHelloExtensionSender(sslSocket *ss, PRUint16 ex_type, 237 ssl3_CallHelloExtensionSenders(sslSocket *ss, PRBool append, PRUint32 maxBytes, 244 ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, 249 int (*connect) (sslSocket *, const PRNetAddr *); 250 PRFileDesc *(*accept) (sslSocket *, PRNetAddr *); [all …]
|
D | ssldef.c | 20 int ssl_DefConnect(sslSocket *ss, const PRNetAddr *sa) in ssl_DefConnect() 29 int ssl_DefBind(sslSocket *ss, const PRNetAddr *addr) in ssl_DefBind() 38 int ssl_DefListen(sslSocket *ss, int backlog) in ssl_DefListen() 47 int ssl_DefShutdown(sslSocket *ss, int how) in ssl_DefShutdown() 56 int ssl_DefRecv(sslSocket *ss, unsigned char *buf, int len, int flags) in ssl_DefRecv() 79 int ssl_DefSend(sslSocket *ss, const unsigned char *buf, int len, int flags) in ssl_DefSend() 118 int ssl_DefRead(sslSocket *ss, unsigned char *buf, int len) in ssl_DefRead() 131 int ssl_DefWrite(sslSocket *ss, const unsigned char *buf, int len) in ssl_DefWrite() 156 int ssl_DefGetpeername(sslSocket *ss, PRNetAddr *name) in ssl_DefGetpeername() 165 int ssl_DefGetsockname(sslSocket *ss, PRNetAddr *name) in ssl_DefGetsockname() [all …]
|
D | sslsecur.c | 78 ssl_Do1stHandshake(sslSocket *ss) in ssl_Do1stHandshake() 128 ssl_FinishHandshake(sslSocket *ss) in ssl_FinishHandshake() 150 ssl3_AlwaysBlock(sslSocket *ss) in ssl3_AlwaysBlock() 160 ssl3_SetAlwaysBlock(sslSocket *ss) in ssl3_SetAlwaysBlock() 171 sslSocket *ss; in ssl_SetTimeout() 196 sslSocket *ss; in SSL_ResetHandshake() 264 sslSocket *ss; in SSL_ReHandshake() 319 sslSocket *ss; in SSL_HandshakeCallback() 352 sslSocket *ss; in SSL_SetCanFalseStartCallback() 381 sslSocket *ss; in SSL_RecommendedCanFalseStart() [all …]
|
D | sslauth.c | 16 sslSocket *ss; in SSL_PeerCertificate() 34 sslSocket *ss; in SSL_PeerCertificateChain() 74 sslSocket *ss; in SSL_LocalCertificate() 100 sslSocket *ss; in SSL_SecurityStatus() 185 sslSocket *ss; in SSL_AuthCertificateHook() 205 sslSocket *ss; in SSL_GetClientAuthDataHook() 223 sslSocket *ss = ssl_FindSocket(fd); in SSL_SetClientChannelIDCallback() 244 sslSocket *ss; in SSL_GetPlatformClientAuthDataHook() 263 sslSocket *ss; in SSL_SetPKCS11PinArg() 286 sslSocket * ss; in SSL_AuthCertificate()
|
D | dtlscon.c | 17 static SECStatus dtls_TransmitMessageFlight(sslSocket *ss); 18 static void dtls_RetransmitTimerExpiredCb(sslSocket *ss); 19 static SECStatus dtls_SendSavedWriteData(sslSocket *ss); 86 ssl3_DisableNonDTLSSuites(sslSocket * ss) in ssl3_DisableNonDTLSSuites() 178 dtls_HandleHandshake(sslSocket *ss, sslBuffer *origBuf) in dtls_HandleHandshake() 452 SECStatus dtls_QueueMessage(sslSocket *ss, SSL3ContentType type, in dtls_QueueMessage() 483 dtls_StageHandshakeMessage(sslSocket *ss) in dtls_StageHandshakeMessage() 510 dtls_FlushHandshakeMessages(sslSocket *ss, PRInt32 flags) in dtls_FlushHandshakeMessages() 542 dtls_RetransmitTimerExpiredCb(sslSocket *ss) in dtls_RetransmitTimerExpiredCb() 576 dtls_TransmitMessageFlight(sslSocket *ss) in dtls_TransmitMessageFlight() [all …]
|
D | ssl3ext.c | 36 static SECStatus ssl3_ParseEncryptedSessionTicket(sslSocket *ss, 42 static SECStatus ssl3_GetSessionTicketKeysPKCS11(sslSocket *ss, 49 static PRInt32 ssl3_SendRenegotiationInfoXtn(sslSocket * ss, 51 static SECStatus ssl3_HandleRenegotiationInfoXtn(sslSocket *ss, 53 static SECStatus ssl3_ClientHandleNextProtoNegoXtn(sslSocket *ss, 55 static SECStatus ssl3_ClientHandleAppProtoXtn(sslSocket *ss, 57 static SECStatus ssl3_ServerHandleNextProtoNegoXtn(sslSocket *ss, 59 static PRInt32 ssl3_ClientSendAppProtoXtn(sslSocket *ss, PRBool append, 61 static PRInt32 ssl3_ClientSendNextProtoNegoXtn(sslSocket *ss, PRBool append, 63 static PRInt32 ssl3_SendUseSRTPXtn(sslSocket *ss, PRBool append, [all …]
|
D | sslreveal.c | 20 sslSocket * sslsocket = NULL; in SSL_RevealCert() 38 sslSocket * sslsocket = NULL; in SSL_RevealPinArg() 57 sslSocket * sslsocket = NULL; in SSL_RevealURL() 79 sslSocket * sslsocket = NULL; in SSL_HandshakeNegotiatedExtension()
|
D | sslsock.c | 223 static sslSocket *ssl_NewSocket(PRBool makeLocks, SSLProtocolVariant variant); 224 static SECStatus ssl_MakeLocks(sslSocket *ss); 226 static PRStatus ssl_PushIOLayer(sslSocket *ns, PRFileDesc *stack, 236 static sslSocket * 239 sslSocket *ss; in ssl_GetPrivate() 251 ss = (sslSocket *)fd->secret; in ssl_GetPrivate() 261 sslSocket * 265 sslSocket *ss; in ssl_FindSocket() 276 ss = (sslSocket *)layer->secret; in ssl_FindSocket() 281 static sslSocket * [all …]
|
D | ssltrace.c | 36 void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *vp, int len) in ssl_PrintBuf() 74 static void PrintType(sslSocket *ss, char *msg) in PrintType() 84 static void PrintInt(sslSocket *ss, char *msg, unsigned v) in PrintInt() 98 static void PrintBuf(sslSocket *ss, char *msg, unsigned char *cp, int len) in PrintBuf() 138 void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len) in ssl_DumpMsg()
|
D | ssl3ecc.c | 66 static SECStatus ssl3_CreateECDHEphemeralKeys(sslSocket *ss, ECName ec_curve); 281 ssl3_SendECDHClientKeyExchange(sslSocket * ss, SECKEYPublicKey * svrPubKey) in ssl3_SendECDHClientKeyExchange() 374 ssl3_HandleECDHClientKeyExchange(sslSocket *ss, SSL3Opaque *b, in ssl3_HandleECDHClientKeyExchange() 452 ssl3_GetCurveNameForServerSocket(sslSocket *ss) in ssl3_GetCurveNameForServerSocket() 570 ssl3_CreateECDHEphemeralKeys(sslSocket *ss, ECName ec_curve) in ssl3_CreateECDHEphemeralKeys() 602 ssl3_HandleECDHServerKeyExchange(sslSocket *ss, SSL3Opaque *b, PRUint32 length) in ssl3_HandleECDHServerKeyExchange() 756 sslSocket *ss, in ssl3_SendECDHServerKeyExchange() 967 ssl3_DisableECCSuites(sslSocket * ss, const ssl3CipherSuite * suite) in ssl3_DisableECCSuites() 983 ssl3_FilterECCipherSuitesByServerCerts(sslSocket * ss) in ssl3_FilterECCipherSuitesByServerCerts() 1030 ssl3_IsECCEnabled(sslSocket * ss) in ssl3_IsECCEnabled() [all …]
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | HttpsURLConnectionImpl.java | 53 SSLSocket sslSocket = getSslSocket(); in getCipherSuite() local 54 if (sslSocket != null) { in getCipherSuite() 55 return sslSocket.getSession().getCipherSuite(); in getCipherSuite() 66 SSLSocket sslSocket = getSslSocket(); in getLocalCertificates() local 67 if (sslSocket != null) { in getLocalCertificates() 68 return sslSocket.getSession().getLocalCertificates(); in getLocalCertificates() 79 SSLSocket sslSocket = getSslSocket(); in getServerCertificates() local 80 if (sslSocket != null) { in getServerCertificates() 81 return sslSocket.getSession().getPeerCertificates(); in getServerCertificates() 91 SSLSocket sslSocket = getSslSocket(); in getPeerPrincipal() local [all …]
|
D | HttpsEngine.java | 36 private SSLSocket sslSocket; field in HttpsEngine 41 this.sslSocket = connection != null ? (SSLSocket) connection.getSocket() : null; in HttpsEngine() 45 this.sslSocket = (SSLSocket) connection.getSocket(); in connected() 59 return sslSocket; in getSslSocket()
|
/external/okhttp/src/main/java/com/squareup/okhttp/ |
D | Connection.java | 133 SSLSocket sslSocket = (SSLSocket) socket; in upgradeToTls() local 135 platform.enableTlsExtensions(sslSocket, route.address.uriHost); in upgradeToTls() 137 platform.supportTlsIntolerantServer(sslSocket); in upgradeToTls() 142 platform.setNpnProtocols(sslSocket, NPN_PROTOCOLS); in upgradeToTls() 146 sslSocket.startHandshake(); in upgradeToTls() 149 if (!route.address.hostnameVerifier.verify(route.address.uriHost, sslSocket.getSession())) { in upgradeToTls() 153 out = sslSocket.getOutputStream(); in upgradeToTls() 154 in = sslSocket.getInputStream(); in upgradeToTls() 157 if (useNpn && (selectedProtocol = platform.getNpnSelectedProtocol(sslSocket)) != null) { in upgradeToTls() 159 sslSocket.setSoTimeout(0); // SPDY timeouts are set per-stream. in upgradeToTls()
|
/external/chromium_org/net/third_party/nss/patches/ |
D | cipherorder.patch | 23 @@ -12423,6 +12423,46 @@ ssl3_CipherPrefGet(sslSocket *ss, ssl3CipherSuite which, PRBool *enabled) 28 +ssl3_CipherOrderSet(sslSocket *ss, const ssl3CipherSuite *ciphers, unsigned int len) 69 ssl3_InitSocketPolicy(sslSocket *ss) 74 @@ -1711,6 +1711,8 @@ extern SECStatus ssl3_CipherPrefSet(sslSocket *ss, ssl3CipherSuite which, PRB… 75 extern SECStatus ssl3_CipherPrefGet(sslSocket *ss, ssl3CipherSuite which, PRBool *on); 76 extern SECStatus ssl2_CipherPrefSet(sslSocket *ss, PRInt32 which, PRBool enabled); 77 extern SECStatus ssl2_CipherPrefGet(sslSocket *ss, PRInt32 which, PRBool *enabled); 78 +extern SECStatus ssl3_CipherOrderSet(sslSocket *ss, const ssl3CipherSuite *cipher, 94 + sslSocket *ss = ssl_FindSocket(fd);
|
D | cachecerts.patch | 6 static SECStatus ssl3_AuthCertificate(sslSocket *ss); 7 static void ssl3_CleanupPeerCerts(sslSocket *ss); 8 +static void ssl3_CopyPeerCertsFromSID(sslSocket *ss, sslSessionID *sid); 9 static PK11SymKey *ssl3_GenerateRSAPMS(sslSocket *ss, ssl3CipherSpec *spec, 11 static SECStatus ssl3_DeriveMasterSecret(sslSocket *ss, PK11SymKey *pms); 12 @@ -6141,6 +6142,7 @@ ssl3_HandleServerHello(sslSocket *ss, SS 28 @@ -9147,6 +9150,44 @@ ssl3_CleanupPeerCerts(sslSocket *ss) 33 +ssl3_CopyPeerCertsFromSID(sslSocket *ss, sslSessionID *sid) 73 @@ -9432,6 +9473,7 @@ ssl3_AuthCertificate(sslSocket *ss)
|
D | alpn.patch | 4 @@ -9912,8 +9912,10 @@ ssl3_SendNextProto(sslSocket *ss) 19 @@ -53,8 +53,12 @@ static SECStatus ssl3_HandleRenegotiationInfoXtn(sslSocket *ss, 21 static SECStatus ssl3_ClientHandleNextProtoNegoXtn(sslSocket *ss, 23 +static SECStatus ssl3_ClientHandleAppProtoXtn(sslSocket *ss, 25 static SECStatus ssl3_ServerHandleNextProtoNegoXtn(sslSocket *ss, 27 +static PRInt32 ssl3_ClientSendAppProtoXtn(sslSocket *ss, PRBool append, 29 static PRInt32 ssl3_ClientSendNextProtoNegoXtn(sslSocket *ss, PRBool append, 31 static PRInt32 ssl3_SendUseSRTPXtn(sslSocket *ss, PRBool append, 70 @@ -606,6 +612,11 @@ ssl3_ClientHandleNextProtoNegoXtn(sslSocket *ss, PRUint16 ex_type, 82 @@ -639,6 +650,44 @@ ssl3_ClientHandleNextProtoNegoXtn(sslSocket *ss, PRUint16 ex_type, [all …]
|
D | channelid.patch | 5 static SECStatus ssl3_SendEmptyCertificate( sslSocket *ss); 6 static SECStatus ssl3_SendCertificateRequest(sslSocket *ss); 7 static SECStatus ssl3_SendNextProto( sslSocket *ss); 8 +static SECStatus ssl3_SendEncryptedExtensions(sslSocket *ss); 9 static SECStatus ssl3_SendFinished( sslSocket *ss, PRInt32 flags); 10 static SECStatus ssl3_SendServerHello( sslSocket *ss); 11 static SECStatus ssl3_SendServerHelloDone( sslSocket *ss); 12 @@ -5891,6 +5892,15 @@ ssl3_HandleServerHello(sslSocket *ss, SS 28 @@ -6170,7 +6180,7 @@ ssl3_HandleServerHello(sslSocket *ss, SS 37 @@ -6196,6 +6206,27 @@ ssl3_HandleServerHello(sslSocket *ss, SS [all …]
|
D | paddingextension.patch | 5 @@ -4975,6 +4975,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBool resending) 13 @@ -5241,6 +5242,20 @@ ssl3_SendClientHello(sslSocket *ss, PRBool resending) 34 @@ -5360,6 +5375,13 @@ ssl3_SendClientHello(sslSocket *ss, PRBool resending) 52 @@ -2297,3 +2297,56 @@ ssl3_ClientSendSigAlgsXtn(sslSocket * ss, PRBool append, PRUint32 maxBytes) 82 +ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, 114 ssl3_CallHelloExtensionSenders(sslSocket *ss, PRBool append, PRUint32 maxBytes, 121 +ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, 126 int (*connect) (sslSocket *, const PRNetAddr *);
|
D | ciphersuiteversion.patch | 37 @@ -804,7 +807,8 @@ ssl3_config_match_init(sslSocket *ss) 47 @@ -812,7 +816,8 @@ ssl3_config_match_init(sslSocket *ss) 72 count_cipher_suites(sslSocket *ss, int policy, PRBool enabled) 73 @@ -834,7 +842,7 @@ count_cipher_suites(sslSocket *ss, int policy, PRBool enabled) 82 @@ -5294,7 +5302,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBool resending) 91 @@ -6359,15 +6367,19 @@ ssl3_HandleServerHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length) 118 @@ -8008,6 +8020,9 @@ ssl3_HandleClientHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length) 128 @@ -8036,7 +8051,7 @@ ssl3_HandleClientHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length) 137 @@ -8084,9 +8099,8 @@ ssl3_HandleClientHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length) 149 @@ -8619,9 +8633,8 @@ ssl3_HandleV2ClientHello(sslSocket *ss, unsigned char *buffer, int length) [all …]
|
D | restartclientauth.patch | 36 +ssl3_RestartHandshakeAfterCertReq(sslSocket * ss, 88 ssl3_CanFalseStart(sslSocket *ss) { 116 extern sslSocket *ssl_FindSocket(PRFileDesc *fd); 118 extern SECStatus SSL3_SendAlert(sslSocket *ss, SSL3AlertLevel level, 120 extern SECStatus ssl3_DecodeError(sslSocket *ss); 122 +extern SECStatus ssl3_RestartHandshakeAfterCertReq(sslSocket * ss, 127 extern SECStatus ssl3_AuthCertificateComplete(sslSocket *ss, PRErrorCode error); 166 -SSL_RestartHandshakeAfterCertReq(sslSocket * ss, 175 + sslSocket * ss = ssl_FindSocket(fd);
|
D | tls12backuphash2.patch | 15 -ssl3_ClientKeyPrefersSHA1(sslSocket *ss) 17 +ssl3_ExtractClientKeyInfo(sslSocket *ss, 38 @@ -6989,7 +7002,8 @@ ssl3_ClientKeyPrefersSHA1(sslSocket *ss) 48 @@ -6999,38 +7013,61 @@ ssl3_ClientKeyPrefersSHA1(sslSocket *ss) 77 ssl3_DestroyBackupHandshakeHashIfNotNeeded(sslSocket *ss,
|
D | sessioncache.patch | 38 @@ -11240,7 +11240,7 @@ ssl3_FinishHandshake(sslSocket * ss) 56 +ssl3_CacheSessionUnlocked(sslSocket *ss) 69 + sslSocket * ss = ssl_FindSocket(fd); 88 + sslSocket * ss = ssl_FindSocket(fd);
|
D | signedcertificatetimestamps.patch | 42 @@ -6639,10 +6639,22 @@ ssl3_HandleServerHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length) 79 @@ -81,6 +81,12 @@ static PRInt32 ssl3_ClientSendSigAlgsXtn(sslSocket *ss, PRBool append, 81 static SECStatus ssl3_ServerHandleSigAlgsXtn(sslSocket *ss, PRUint16 ex_type, 83 +static PRInt32 ssl3_ClientSendSignedCertTimestampXtn(sslSocket *ss, 86 +static SECStatus ssl3_ClientHandleSignedCertTimestampXtn(sslSocket *ss, 112 @@ -2364,3 +2374,65 @@ ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, 120 +ssl3_ClientSendSignedCertTimestampXtn(sslSocket *ss, PRBool append, 155 +ssl3_ClientHandleSignedCertTimestampXtn(sslSocket *ss, PRUint16 ex_type, 256 + * until a session structure (the sec.ci.sid of an sslSocket) is setup 266 typedef SECStatus (*sslRestartTarget)(sslSocket *); [all …]
|
D | suitebonly.patch | 6 ssl3_SuiteBOnly(sslSocket *ss) 12 @@ -1091,6 +1092,9 @@ ssl3_SuiteBOnly(sslSocket *ss)
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
D | SpdyServer.java | 64 SSLSocket sslSocket = in doSsl() local 67 sslSocket.setUseClientMode(false); in doSsl() 68 NextProtoNego.put(sslSocket, new NextProtoNego.ServerProvider() { in doSsl() 79 return sslSocket; in doSsl()
|