diff options
author | Robert Sloan <varomodt@google.com> | 2018-10-10 18:45:40 -0700 |
---|---|---|
committer | Robert Sloan <varomodt@google.com> | 2018-10-10 18:48:26 -0700 |
commit | f068def344212558323b66ff902a5d6f58fb5460 (patch) | |
tree | 3f126db360739e46640cebed2c475edffce90211 /src/crypto/asn1/a_dup.c | |
parent | 036981b286483e0c9cb260dd5755a29e388d881b (diff) | |
download | boringssl-f068def344212558323b66ff902a5d6f58fb5460.tar.gz |
external/boringssl: Sync to 2d98d49cf712ca7dc6f4b23b9c5f5542385d8dbe.android-o-mr1-iot-release-smart-display-r3oreo-mr1-1.2-iot-release
This includes the following changes:
https://boringssl.googlesource.com/boringssl/+log/5ede28c8a422801ace3ba5e466ba963005351145..2d98d49cf712ca7dc6f4b23b9c5f5542385d8dbe
Test: BoringSSL CTS Presubmits
Change-Id: I21750d81b070d7e4741e205f5c2ccd8d541b36d1
Diffstat (limited to 'src/crypto/asn1/a_dup.c')
-rw-r--r-- | src/crypto/asn1/a_dup.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/crypto/asn1/a_dup.c b/src/crypto/asn1/a_dup.c index 57394f58..9ede8511 100644 --- a/src/crypto/asn1/a_dup.c +++ b/src/crypto/asn1/a_dup.c @@ -59,30 +59,6 @@ #include <openssl/err.h> #include <openssl/mem.h> -void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x) -{ - unsigned char *b, *p; - const unsigned char *p2; - int i; - char *ret; - - if (x == NULL) - return (NULL); - - i = i2d(x, NULL); - b = OPENSSL_malloc(i + 10); - if (b == NULL) { - OPENSSL_PUT_ERROR(ASN1, ERR_R_MALLOC_FAILURE); - return (NULL); - } - p = b; - i = i2d(x, &p); - p2 = b; - ret = d2i(NULL, &p2, i); - OPENSSL_free(b); - return (ret); -} - /* * ASN1_ITEM version of dup: this follows the model above except we don't * need to allocate the buffer. At some point this could be rewritten to |