diff options
author | Steven Valdez <svaldez@google.com> | 2016-02-24 22:00:22 +0300 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2016-02-24 22:14:19 +0300 |
commit | d8eea14443ab890b0a6d00a40d2dbf6d3bf79484 (patch) | |
tree | 27d37b28177519759484fbcf864683ef5cb9a1fe /crypto/pkcs8 | |
parent | a5ee83f67e83d4065d1aa40137e8dd8b1c83b3e5 (diff) |
BIO_new_mem_buf should take const void *
BIO_FLAGS_MEM_RDONLY keeps the invariant.
(Imported from upstream's a38a159bfcbc94214dda00e0e6b1fc6454a23b78)
Change-Id: I4cb35615d76b77929915e370dbb7fec1455da069
Reviewed-on: https://boringssl-review.googlesource.com/7214
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/pkcs8')
-rw-r--r-- | crypto/pkcs8/pkcs12_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs8/pkcs12_test.cc b/crypto/pkcs8/pkcs12_test.cc index f1a1fcd2..17bcd273 100644 --- a/crypto/pkcs8/pkcs12_test.cc +++ b/crypto/pkcs8/pkcs12_test.cc @@ -708,7 +708,7 @@ static bool Test(const char *name, const uint8_t *der, size_t der_len) { } static bool TestCompat(const uint8_t *der, size_t der_len) { - ScopedBIO bio(BIO_new_mem_buf((void*) der, der_len)); + ScopedBIO bio(BIO_new_mem_buf(der, der_len)); if (!bio) { return false; } |