Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 10 of 10) sorted by relevance

/openssl/crypto/bio/
H A Dbio_print.c41 size_t *maxlen, size_t *retlen, int *truncated,
89 size_t *maxlen, in _dopr() argument
322 max = *maxlen; in _dopr()
369 *truncated = (currlen > *maxlen - 1); in _dopr()
371 currlen = *maxlen - 1; in _dopr()
839 if (!ossl_assert(*currlen <= *maxlen)) in doapr_outch()
842 if (buffer && *currlen == *maxlen) { in doapr_outch()
843 if (*maxlen > INT_MAX - BUFFER_INC) in doapr_outch()
846 *maxlen += BUFFER_INC; in doapr_outch()
859 tmpbuf = OPENSSL_realloc(*buffer, *maxlen); in doapr_outch()
[all …]
/openssl/apps/lib/
H A Dcolumns.c17 int len, maxlen = 0; in calculate_columns() local
21 if ((len = strlen(f->name)) > maxlen) in calculate_columns()
22 maxlen = len; in calculate_columns()
24 dc->width = maxlen + 2; in calculate_columns()
H A Dapps.c2055 int bio_to_mem(unsigned char **out, int maxlen, BIO *in) in bio_to_mem() argument
2065 if ((maxlen != -1) && maxlen < 1024) in bio_to_mem()
2066 len = maxlen; in bio_to_mem()
2080 if (maxlen != -1) in bio_to_mem()
2081 maxlen -= len; in bio_to_mem()
2083 if (maxlen == 0) in bio_to_mem()
/openssl/crypto/
H A Do_str.c36 size_t maxlen; in CRYPTO_strndup() local
42 maxlen = OPENSSL_strnlen(str, s); in CRYPTO_strndup()
44 ret = CRYPTO_malloc(maxlen + 1, file, line); in CRYPTO_strndup()
46 memcpy(ret, str, maxlen); in CRYPTO_strndup()
47 ret[maxlen] = CH_ZERO; in CRYPTO_strndup()
65 size_t OPENSSL_strnlen(const char *str, size_t maxlen) in OPENSSL_strnlen() argument
69 for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p) ; in OPENSSL_strnlen()
/openssl/include/openssl/
H A Dbuffer.h39 # define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen) argument
H A Dcrypto.h.in136 size_t OPENSSL_strnlen(const char *str, size_t maxlen);
H A Devp.h748 int EVP_read_pw_string_min(char *buf, int minlen, int maxlen,
/openssl/ssl/
H A Dssl_asn1.c244 ASN1_OCTET_STRING *src, size_t maxlen) in ssl_session_memcpy() argument
250 if (src->length < 0 || src->length > (int)maxlen) in ssl_session_memcpy()
/openssl/apps/include/
H A Dapps.h256 int bio_to_mem(unsigned char **out, int maxlen, BIO *in);
/openssl/ssl/statem/
H A Dstatem_clnt.c4067 size_t totlen = 0, len, maxlen, maxverok = 0; in ssl_cipher_list_to_bytes() local
4095 maxlen = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1; in ssl_cipher_list_to_bytes()
4099 maxlen = 0xfffe; in ssl_cipher_list_to_bytes()
4102 maxlen -= 2; in ssl_cipher_list_to_bytes()
4104 maxlen -= 2; in ssl_cipher_list_to_bytes()
4106 for (i = 0; i < sk_SSL_CIPHER_num(sk) && totlen < maxlen; i++) { in ssl_cipher_list_to_bytes()

Completed in 43 milliseconds