Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 8 of 8) sorted by relevance

/curl/lib/vtls/
H A Dmbedtls.c879 size_t slen = 0; local
883 &sdata, &slen, NULL) && slen) {
887 ret = mbedtls_ssl_session_load(&session, sdata, slen);
1118 static void mbedtls_session_free(void *session, size_t slen) argument
1120 (void)slen;
1138 size_t slen = 0; local
1149 mbedtls_ssl_session_save(&session, NULL, 0, &slen);
1150 if(!slen) {
1154 sdata = malloc(slen);
1156 ret = mbedtls_ssl_session_save(&session, sdata, slen, &slen);
[all …]
H A Dwolfssl.c403 static void wolfssl_session_free(void *sdata, size_t slen) in wolfssl_session_free() argument
405 (void)slen; in wolfssl_session_free()
416 unsigned int slen; in wssl_cache_session() local
421 slen = wolfSSL_i2d_SSL_SESSION(session, NULL); in wssl_cache_session()
422 if(slen <= 0) { in wssl_cache_session()
427 sdata = calloc(1, slen); in wssl_cache_session()
433 slen = wolfSSL_i2d_SSL_SESSION(session, &sdata); in wssl_cache_session()
434 if(slen <= 0) { in wssl_cache_session()
435 CURL_TRC_CF(data, cf, "fail to serialize session: %u", slen); in wssl_cache_session()
481 size_t slen = 0; in wssl_setup_session() local
[all …]
H A Dgtls.c1147 unsigned char slen; in Curl_gtls_ctx_init() local
1149 slen = s[0]; in Curl_gtls_ctx_init()
1150 if(slen >= alen) in Curl_gtls_ctx_init()
1153 gtls_alpns[i].size = slen; in Curl_gtls_ctx_init()
1154 s += slen + 1; in Curl_gtls_ctx_init()
1155 alen -= (size_t)slen + 1; in Curl_gtls_ctx_init()
H A Dbearssl.c613 size_t slen; in bearssl_connect_step1() local
618 if(!Curl_ssl_getsessionid(cf, data, &connssl->peer, &sdata, &slen, NULL) && in bearssl_connect_step1()
619 slen == sizeof(*session)) { in bearssl_connect_step1()
H A Dvtls.c2257 size_t slen = strlen(spec->entries[i]); in Curl_alpn_contains_proto() local
2258 if((slen == plen) && !memcmp(proto, spec->entries[i], plen)) in Curl_alpn_contains_proto()
/curl/packages/OS400/
H A Dccsidcurl.c109 const char *s, int slen, int sccsid) in convert() argument
130 lslen = slen >= 0 ? slen : strlen(s) + 1; in convert()
139 if(slen < 0) { in convert()
144 lslen = (size_t) slen; in convert()
163 static char *dynconvert(int dccsid, const char *s, int slen, int sccsid) in dynconvert() argument
173 dlen = (size_t) (slen < 0 ? strlen(s) : slen) + 1; in dynconvert()
180 l = convert(d, dlen, dccsid, s, slen, sccsid); in dynconvert()
187 if(slen < 0) { in dynconvert()
/curl/lib/
H A Dopenldap.c944 const char *suffix, size_t slen) in client_write() argument
959 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *) suffix, slen); in client_write()
H A Dcf-socket.c1064 curl_socklen_t slen = sizeof(struct Curl_sockaddr_storage); in set_local_ip() local
1067 if(getsockname(ctx->sock, (struct sockaddr*) &ssloc, &slen)) { in set_local_ip()
1073 if(!Curl_addr2string((struct sockaddr*)&ssloc, slen, in set_local_ip()

Completed in 39 milliseconds