Lines Matching refs:buflen
205 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen, in hexstr2buf_sep() argument
240 if (buflen != NULL) in hexstr2buf_sep()
241 *buflen = cnt; in hexstr2buf_sep()
248 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, in OPENSSL_hexstr2buf_ex() argument
251 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); in OPENSSL_hexstr2buf_ex()
254 unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen, in ossl_hexstr2buf_sep() argument
269 if (buflen != NULL) in ossl_hexstr2buf_sep()
270 *buflen = 0; in ossl_hexstr2buf_sep()
273 if (buflen != NULL) in ossl_hexstr2buf_sep()
274 *buflen = (long)tmp_buflen; in ossl_hexstr2buf_sep()
281 unsigned char *OPENSSL_hexstr2buf(const char *str, long *buflen) in OPENSSL_hexstr2buf() argument
283 return ossl_hexstr2buf_sep(str, buflen, DEFAULT_SEPARATOR); in OPENSSL_hexstr2buf()
287 const unsigned char *buf, size_t buflen, in buf2hexstr_sep() argument
292 size_t i, len = has_sep ? buflen * 3 : 1 + buflen * 2; in buf2hexstr_sep()
307 for (i = 0; i < buflen; i++) { in buf2hexstr_sep()
312 if (has_sep && buflen > 0) in buf2hexstr_sep()
323 const unsigned char *buf, size_t buflen, in OPENSSL_buf2hexstr_ex() argument
326 return buf2hexstr_sep(str, str_n, strlength, buf, buflen, sep); in OPENSSL_buf2hexstr_ex()
329 char *ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep) in ossl_buf2hexstr_sep() argument
334 if (buflen == 0) in ossl_buf2hexstr_sep()
337 tmp_n = (sep != CH_ZERO) ? buflen * 3 : 1 + buflen * 2; in ossl_buf2hexstr_sep()
341 if (buf2hexstr_sep(tmp, tmp_n, NULL, buf, buflen, sep)) in ossl_buf2hexstr_sep()
353 char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen) in OPENSSL_buf2hexstr() argument
355 return ossl_buf2hexstr_sep(buf, buflen, DEFAULT_SEPARATOR); in OPENSSL_buf2hexstr()
358 int openssl_strerror_r(int errnum, char *buf, size_t buflen) in openssl_strerror_r() argument
361 return !strerror_s(buf, buflen, errnum); in openssl_strerror_r()
370 err = strerror_r(errnum, buf, buflen); in openssl_strerror_r()
371 if (err == NULL || buflen == 0) in openssl_strerror_r()
381 OPENSSL_strlcpy(buf, err, buflen); in openssl_strerror_r()
390 return !strerror_r(errnum, buf, buflen); in openssl_strerror_r()
395 if (buflen < 2) in openssl_strerror_r()
401 OPENSSL_strlcpy(buf, err, buflen); in openssl_strerror_r()