summaryrefslogtreecommitdiffstats
path: root/crypto/cpt_err.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-03 18:40:17 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-12 12:50:41 +0200
commit82bd7c2cbd3a4b38321fb9053b8aa0f5d100cf54 (patch)
treeb3a77966489689c83d94dcd2be519186e4f08bd9 /crypto/cpt_err.c
parentenable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler (diff)
downloadopenssl-82bd7c2cbd3a4b38321fb9053b8aa0f5d100cf54.tar.xz
openssl-82bd7c2cbd3a4b38321fb9053b8aa0f5d100cf54.zip
Add OPENSSL_hexstr2buf_ex() and OPENSSL_buf2hexstr_ex()
They do the same thing as OPENSSL_hexstr2buf() and OPENSSL_buf2hexstr(), except they take a result buffer from the caller. We take the opportunity to break out the documentation of the hex to / from buffer conversion routines from the OPENSSL_malloc() file to its own file. These routines aren't memory allocation routines per se. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9303)
Diffstat (limited to 'crypto/cpt_err.c')
-rw-r--r--crypto/cpt_err.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/cpt_err.c b/crypto/cpt_err.c
index fdf0e6ebce..012f181d2a 100644
--- a/crypto/cpt_err.c
+++ b/crypto/cpt_err.c
@@ -40,6 +40,8 @@ static const ERR_STRING_DATA CRYPTO_str_reasons[] = {
{ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_BYTES), "too many bytes"},
{ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_RECORDS),
"too many records"},
+ {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_SMALL_BUFFER),
+ "too small buffer"},
{ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ZERO_LENGTH_NUMBER),
"zero length number"},
{0, NULL}