Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 1429) sorted by relevance

12345678910>>...58

/external/chromium_org/net/third_party/nss/ssl/
Dsslsecur.c78 ssl_Do1stHandshake(sslSocket *ss) in ssl_Do1stHandshake() argument
84 PORT_Assert(ss->opt.noLocks || ssl_Have1stHandshakeLock(ss) ); in ssl_Do1stHandshake()
85 PORT_Assert(ss->opt.noLocks || !ssl_HaveRecvBufLock(ss)); in ssl_Do1stHandshake()
86 PORT_Assert(ss->opt.noLocks || !ssl_HaveXmitBufLock(ss)); in ssl_Do1stHandshake()
87 PORT_Assert(ss->opt.noLocks || !ssl_HaveSSL3HandshakeLock(ss)); in ssl_Do1stHandshake()
89 if (ss->handshake == 0) { in ssl_Do1stHandshake()
91 ss->handshake = ss->nextHandshake; in ssl_Do1stHandshake()
92 ss->nextHandshake = 0; in ssl_Do1stHandshake()
94 if (ss->handshake == 0) { in ssl_Do1stHandshake()
96 ss->handshake = ss->securityHandshake; in ssl_Do1stHandshake()
[all …]
Dsslcon.c144 ssl2_ConstructCipherSpecs(sslSocket *ss) in ssl2_ConstructCipherSpecs() argument
154 PORT_Assert( ss->opt.noLocks || ssl_Have1stHandshakeLock(ss) ); in ssl2_ConstructCipherSpecs()
157 PORT_Assert(ss != 0); in ssl2_ConstructCipherSpecs()
158 allowed = !ss->opt.enableSSL2 ? 0 : in ssl2_ConstructCipherSpecs()
159 (ss->allowedByPolicy & ss->chosenPreference & SSL_CB_IMPLEMENTED); in ssl2_ConstructCipherSpecs()
171 ssl3_config_match_init(ss); in ssl2_ConstructCipherSpecs()
174 rv = ssl3_ConstructV2CipherSpecsHack(ss, NULL, &ssl3_count); in ssl2_ConstructCipherSpecs()
187 if (ss->cipherSpecs != NULL) { in ssl2_ConstructCipherSpecs()
188 PORT_Free(ss->cipherSpecs); in ssl2_ConstructCipherSpecs()
190 ss->cipherSpecs = cs; in ssl2_ConstructCipherSpecs()
[all …]
Ddtlscon.c17 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() argument
91 SECStatus rv = ssl3_CipherPrefSet(ss, *suite, PR_FALSE); in ssl3_DisableNonDTLSSuites()
178 dtls_HandleHandshake(sslSocket *ss, sslBuffer *origBuf) in dtls_HandleHandshake() argument
189 PORT_Assert(ss->opt.noLocks || ssl_HaveRecvBufLock(ss)); in dtls_HandleHandshake()
190 PORT_Assert(ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss)); in dtls_HandleHandshake()
215 (void)ssl3_DecodeError(ss); in dtls_HandleHandshake()
247 if ((message_seq == ss->ssl3.hs.recvMessageSeq) in dtls_HandleHandshake()
[all …]
Dsslsock.c138 static SECStatus ssl_MakeLocks(sslSocket *ss);
153 sslSocket *ss; in ssl_GetPrivate() local
165 ss = (sslSocket *)fd->secret; in ssl_GetPrivate()
166 ss->fd = fd; in ssl_GetPrivate()
167 return ss; in ssl_GetPrivate()
179 sslSocket *ss; in ssl_FindSocket() local
190 ss = (sslSocket *)layer->secret; in ssl_FindSocket()
191 ss->fd = layer; in ssl_FindSocket()
192 return ss; in ssl_FindSocket()
198 sslSocket *ss; in ssl_DupSocket() local
[all …]
Dsslauth.c16 sslSocket *ss; in SSL_PeerCertificate() local
18 ss = ssl_FindSocket(fd); in SSL_PeerCertificate()
19 if (!ss) { in SSL_PeerCertificate()
24 if (ss->opt.useSecurity && ss->sec.peerCert) { in SSL_PeerCertificate()
25 return CERT_DupCertificate(ss->sec.peerCert); in SSL_PeerCertificate()
34 sslSocket *ss; in SSL_PeerCertificateChain() local
39 ss = ssl_FindSocket(fd); in SSL_PeerCertificateChain()
40 if (!ss) { in SSL_PeerCertificateChain()
45 if (!ss->opt.useSecurity || !ss->sec.peerCert) { in SSL_PeerCertificateChain()
53 cert = CERT_DupCertificate(ss->sec.peerCert); in SSL_PeerCertificateChain()
[all …]
Dssl3con.c71 static SECStatus ssl3_AuthCertificate(sslSocket *ss);
72 static void ssl3_CleanupPeerCerts(sslSocket *ss);
73 static void ssl3_CopyPeerCertsFromSID(sslSocket *ss, sslSessionID *sid);
74 static PK11SymKey *ssl3_GenerateRSAPMS(sslSocket *ss, ssl3CipherSpec *spec,
76 static SECStatus ssl3_DeriveMasterSecret(sslSocket *ss, PK11SymKey *pms);
77 static SECStatus ssl3_DeriveConnectionKeysPKCS11(sslSocket *ss);
78 static SECStatus ssl3_HandshakeFailure( sslSocket *ss);
79 static SECStatus ssl3_InitState( sslSocket *ss);
80 static SECStatus ssl3_SendCertificate( sslSocket *ss);
81 static SECStatus ssl3_SendCertificateStatus( sslSocket *ss);
[all …]
Dssl3gthr.c35 ssl3_GatherData(sslSocket *ss, sslGather *gs, int flags) in ssl3_GatherData() argument
43 PORT_Assert( ss->opt.noLocks || ssl_HaveRecvBufLock(ss) ); in ssl3_GatherData()
56 SSL_GETPID(), ss->fd, gs->state, gs->remainder)); in ssl3_GatherData()
58 nb = ssl_DefRecv(ss, bp, gs->remainder, flags); in ssl3_GatherData()
61 PRINT_BUF(60, (ss, "raw gather data:", bp, nb)); in ssl3_GatherData()
64 SSL_TRC(30, ("%d: SSL3[%d]: EOF", SSL_GETPID(), ss->fd)); in ssl3_GatherData()
68 SSL_DBG(("%d: SSL3[%d]: recv error %d", SSL_GETPID(), ss->fd, in ssl3_GatherData()
106 SSL3_SendAlert(ss, alert_fatal, unexpected_message); in ssl3_GatherData()
160 dtls_GatherData(sslSocket *ss, sslGather *gs, int flags) in dtls_GatherData() argument
168 PORT_Assert( ss->opt.noLocks || ssl_HaveRecvBufLock(ss) ); in dtls_GatherData()
[all …]
Dssltrace.c36 void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *vp, int len) in ssl_PrintBuf() argument
43 if (ss) { in ssl_PrintBuf()
44 SSL_TRACE(("%d: SSL[%d]: %s [Len: %d]", SSL_GETPID(), ss->fd, in ssl_PrintBuf()
74 static void PrintType(sslSocket *ss, char *msg) in PrintType() argument
76 if (ss) { in PrintType()
77 SSL_TRACE(("%d: SSL[%d]: dump-msg: %s", SSL_GETPID(), ss->fd, in PrintType()
84 static void PrintInt(sslSocket *ss, char *msg, unsigned v) in PrintInt() argument
86 if (ss) { in PrintInt()
87 SSL_TRACE(("%d: SSL[%d]: %s=%u", SSL_GETPID(), ss->fd, in PrintInt()
98 static void PrintBuf(sslSocket *ss, char *msg, unsigned char *cp, int len) in PrintBuf() argument
[all …]
Dssl3ext.c36 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 …]
Dsslgathr.c13 static SECStatus ssl2_HandleV3HandshakeRecord(sslSocket *ss);
54 ssl2_GatherData(sslSocket *ss, sslGather *gs, int flags) in ssl2_GatherData() argument
60 PORT_Assert( ss->opt.noLocks || ssl_HaveRecvBufLock(ss) ); in ssl2_GatherData()
76 PORT_Assert(ss->sec.hash != 0); in ssl2_GatherData()
82 SSL_GETPID(), ss->fd, gs->state, gs->remainder)); in ssl2_GatherData()
84 nb = ssl_DefRecv(ss, bp, gs->remainder, flags); in ssl2_GatherData()
86 PRINT_BUF(60, (ss, "raw gather data:", bp, nb)); in ssl2_GatherData()
90 SSL_TRC(30, ("%d: SSL[%d]: EOF", SSL_GETPID(), ss->fd)); in ssl2_GatherData()
95 SSL_DBG(("%d: SSL[%d]: recv error %d", SSL_GETPID(), ss->fd, in ssl2_GatherData()
111 if (!SSL3_ALL_VERSIONS_DISABLED(&ss->vrange) && !ss->firstHsDone) { in ssl2_GatherData()
[all …]
Dsslimpl.h190 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,
1043 #define IS_DTLS(ss) (ss->protocolVariant == ssl_variant_datagram) argument
1402 extern int ssl_DefConnect(sslSocket *ss, const PRNetAddr *addr);
1403 extern PRFileDesc *ssl_DefAccept(sslSocket *ss, PRNetAddr *addr);
[all …]
Dssldef.c20 int ssl_DefConnect(sslSocket *ss, const PRNetAddr *sa) in ssl_DefConnect() argument
22 PRFileDesc *lower = ss->fd->lower; in ssl_DefConnect()
25 rv = lower->methods->connect(lower, sa, ss->cTimeout); in ssl_DefConnect()
29 int ssl_DefBind(sslSocket *ss, const PRNetAddr *addr) in ssl_DefBind() argument
31 PRFileDesc *lower = ss->fd->lower; in ssl_DefBind()
38 int ssl_DefListen(sslSocket *ss, int backlog) in ssl_DefListen() argument
40 PRFileDesc *lower = ss->fd->lower; in ssl_DefListen()
47 int ssl_DefShutdown(sslSocket *ss, int how) in ssl_DefShutdown() argument
49 PRFileDesc *lower = ss->fd->lower; in ssl_DefShutdown()
56 int ssl_DefRecv(sslSocket *ss, unsigned char *buf, int len, int flags) in ssl_DefRecv() argument
[all …]
/external/libcxx/test/input.output/iostream.format/quoted.manip/
Dquoted.pass.cpp34 std::stringstream ss; in both_ways() local
35 bool skippingws = is_skipws ( &ss ); in both_ways()
36 ss << q; in both_ways()
37 ss >> q; in both_ways()
41 std::stringstream ss; in round_trip() local
42 bool skippingws = is_skipws ( &ss ); in round_trip()
43 ss << std::quoted(p); in round_trip()
45 ss >> std::quoted(s); in round_trip()
47 assert ( skippingws == is_skipws ( &ss )); in round_trip()
51 std::stringstream ss; in round_trip_ws() local
[all …]
/external/libcxx/test/input.output/string.streams/stringstream.members/
Dstr.pass.cpp23 std::stringstream ss(" 123 456 "); in main() local
24 assert(ss.rdbuf() != 0); in main()
25 assert(ss.good()); in main()
26 assert(ss.str() == " 123 456 "); in main()
28 ss >> i; in main()
30 ss >> i; in main()
32 ss << i << ' ' << 123; in main()
33 assert(ss.str() == "456 1236 "); in main()
34 ss.str("5466 89 "); in main()
35 ss >> i; in main()
[all …]
/external/chromium_org/third_party/webrtc/
Dconfig.cc17 std::stringstream ss; in ToString() local
18 ss << "{ulpfec_payload_type: " << ulpfec_payload_type; in ToString()
19 ss << ", red_payload_type: " << red_payload_type; in ToString()
20 ss << '}'; in ToString()
21 return ss.str(); in ToString()
25 std::stringstream ss; in ToString() local
26 ss << "{name: " << name; in ToString()
27 ss << ", id: " << id; in ToString()
28 ss << '}'; in ToString()
29 return ss.str(); in ToString()
[all …]
/external/libcxx/test/input.output/string.streams/ostringstream/ostringstream.members/
Dstr.pass.cpp23 std::ostringstream ss(" 123 456"); in main() local
24 assert(ss.rdbuf() != 0); in main()
25 assert(ss.good()); in main()
26 assert(ss.str() == " 123 456"); in main()
28 ss << i; in main()
29 assert(ss.str() == "0123 456"); in main()
30 ss << 456; in main()
31 assert(ss.str() == "0456 456"); in main()
32 ss.str(" 789"); in main()
33 assert(ss.str() == " 789"); in main()
[all …]
/external/libcxx/test/input.output/string.streams/ostringstream/ostringstream.cons/
Dstring.pass.cpp24 std::ostringstream ss(" 123 456"); in main() local
25 assert(ss.rdbuf() != 0); in main()
26 assert(ss.good()); in main()
27 assert(ss.str() == " 123 456"); in main()
29 ss << i << ' ' << 567;; in main()
30 assert(ss.str() == "234 5676"); in main()
33 std::ostringstream ss(" 123 456", std::ios_base::in); in main() local
34 assert(ss.rdbuf() != 0); in main()
35 assert(ss.good()); in main()
36 assert(ss.str() == " 123 456"); in main()
[all …]
/external/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/
Dstring.pass.cpp24 std::istringstream ss(" 123 456"); in main() local
25 assert(ss.rdbuf() != 0); in main()
26 assert(ss.good()); in main()
27 assert(ss.str() == " 123 456"); in main()
29 ss >> i; in main()
31 ss >> i; in main()
35 std::istringstream ss(" 123 456", std::ios_base::out); in main() local
36 assert(ss.rdbuf() != 0); in main()
37 assert(ss.good()); in main()
38 assert(ss.str() == " 123 456"); in main()
[all …]
/external/libcxx/test/input.output/string.streams/istringstream/istringstream.members/
Dstr.pass.cpp23 std::istringstream ss(" 123 456"); in main() local
24 assert(ss.rdbuf() != 0); in main()
25 assert(ss.good()); in main()
26 assert(ss.str() == " 123 456"); in main()
28 ss >> i; in main()
30 ss >> i; in main()
32 ss.str(" 789"); in main()
33 ss.clear(); in main()
34 assert(ss.good()); in main()
35 assert(ss.str() == " 789"); in main()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/
DSystemScopeTest.java42 IdentityScope ss = null; field in SystemScopeTest
50 if (mode) ss = new SystemScope("SystemScope"); in setUp()
52 ss = IdentityScope.getSystemScope(); in setUp()
53 Enumeration e = ss.identities(); in setUp()
55 ss.removeIdentity((Identity) e.nextElement()); in setUp()
74 assertEquals(0, ss.size()); in testSize()
75 ss.addIdentity(new IdentityScopeStub("aaa")); in testSize()
76 assertEquals(1, ss.size()); in testSize()
77 ss.addIdentity(new IdentityScopeStub("bbb")); in testSize()
78 assertEquals(2, ss.size()); in testSize()
[all …]
/external/openssl/ssl/
Dssl_sess.c190 SSL_SESSION *ss; in SSL_SESSION_new() local
192 ss=(SSL_SESSION *)OPENSSL_malloc(sizeof(SSL_SESSION)); in SSL_SESSION_new()
193 if (ss == NULL) in SSL_SESSION_new()
198 memset(ss,0,sizeof(SSL_SESSION)); in SSL_SESSION_new()
200 ss->verify_result = 1; /* avoid 0 (= X509_V_OK) just in case */ in SSL_SESSION_new()
201 ss->references=1; in SSL_SESSION_new()
202 ss->timeout=60*5+4; /* 5 minute timeout by default */ in SSL_SESSION_new()
203 ss->time=(unsigned long)time(NULL); in SSL_SESSION_new()
204 ss->prev=NULL; in SSL_SESSION_new()
205 ss->next=NULL; in SSL_SESSION_new()
[all …]
/external/chromium_org/native_client_sdk/src/libraries/error_handling/
Derror_handling.c48 static void EHPrintArch(sstream_t* ss, struct NaClExceptionContext* context) { in EHPrintArch() argument
50 ssprintf(ss, "\"arch\": \"x86_64\",\n"); in EHPrintArch()
52 ssprintf(ss, "\"arch\": \"x86_32\",\n"); in EHPrintArch()
54 ssprintf(ss, "\"arch\": \"arm\",\n"); in EHPrintArch()
56 ssprintf(ss, "\"arch\": \"mips\",\n"); in EHPrintArch()
62 static void EHPrintSegments(sstream_t* ss, in EHPrintSegments() argument
64 ssprintf(ss, "\"segments\": ["); in EHPrintSegments()
65 ssprintf(ss, "],\n"); in EHPrintSegments()
68 static void EHPrintFrame(sstream_t* ss, EHFrame* frame) { in EHPrintFrame() argument
72 ssprintf(ss, "{\n"); in EHPrintFrame()
[all …]
/external/libcxx/test/input.output/string.streams/stringstream.cons/stringstream.assign/
Dmove.pass.cpp25 std::stringstream ss; in main() local
26 ss = std::move(ss0); in main()
27 assert(ss.rdbuf() != 0); in main()
28 assert(ss.good()); in main()
29 assert(ss.str() == " 123 456 "); in main()
31 ss >> i; in main()
33 ss >> i; in main()
35 ss << i << ' ' << 123; in main()
36 assert(ss.str() == "456 1236 "); in main()
40 std::wstringstream ss; in main() local
[all …]
Dnonmember_swap.pass.cpp27 std::stringstream ss; in main() local
28 swap(ss, ss0); in main()
29 assert(ss.rdbuf() != 0); in main()
30 assert(ss.good()); in main()
31 assert(ss.str() == " 123 456 "); in main()
33 ss >> i; in main()
35 ss >> i; in main()
37 ss << i << ' ' << 123; in main()
38 assert(ss.str() == "456 1236 "); in main()
44 std::wstringstream ss; in main() local
[all …]
/external/chromium_org/net/third_party/nss/patches/
Dchannelid.patch5 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 @@ -6221,6 +6222,15 @@ ssl3_HandleServerHello(sslSocket *ss, SS
16 + if (ss->ssl3.channelID != NULL) {
17 + SECKEY_DestroyPrivateKey(ss->ssl3.channelID);
[all …]

12345678910>>...58