David Benjamin
551ccd7e94
Fix CRYPTO_malloc, etc., definitions.
...
In upstream, these functions take file and line number arguments. Update
ours to match. Guessing almost no one uses these, or we'd have caught
this earlier.
Change-Id: Ic09f8d8274065ac02efa78e70c215b87fa765b9f
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49665
Reviewed-by: Adam Langley <agl@google.com>
Reviewed-by: Benjamin Brittain <bwb@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
4 years ago
Adam Langley
b49b78ef3f
Revert "Guard use of sdallocx with BORINGSSL_SDALLOCX"
...
This reverts commit 80df7398ce
.
See https://github.com/grpc/grpc/issues/25450#issuecomment-910806034
Even if we want to do this, turns out that we still need the weak symbol
in order to work in important environments.
Change-Id: I50b9aef0cfe7ed70bda433c3046d46f194636d54
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49205
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
4 years ago
David Benjamin
5984cfe8e4
OPENSSL_strndup should not return NULL given {NULL, 0}.
...
The NUL-terminated representation of the empty string is a non-NULL
one-byte array, not NULL. This fills in the last of the empty string
cases in https://boringssl-review.googlesource.com/c/boringssl/+/49006/
Change-Id: I66c09dc3223f762b708612987b26c90e41e27c4a
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49009
Reviewed-by: Adam Langley <agl@google.com>
4 years ago
Adam Langley
80df7398ce
Guard use of sdallocx with BORINGSSL_SDALLOCX
...
See comment in change and https://github.com/grpc/grpc/issues/25450
Update-note: consumers may wish to define BORINGSSL_SDALLOCX if using
tcmalloc.
Change-Id: I123fe31a6c4013f1ce0c056f82a316c71df84939
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48885
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
4 years ago
David Benjamin
ec8c67dfbc
Prefix internal LHASH functions.
...
lh_new is a very short name to be claiming.
Change-Id: I529f5063f9afae56fdb532ae4f4b91bb807322f6
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48206
Reviewed-by: Adam Langley <agl@google.com>
4 years ago
David Benjamin
20f7bbaacc
Add some warnings on how to use OPENSSL_memory_* functions.
...
Being called on every malloc or free has some non-trivial implications.
Change-Id: I9f18f307a8b43e30dea2e2f3a47d7da0b188e980
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/46406
Reviewed-by: Adam Langley <agl@google.com>
4 years ago
Adam Langley
fb0c05cac2
acvp: add CMAC-AES support.
...
Change by Dan Janni.
Change-Id: I3f059e7b1a822c6f97128ca92a693499a3f7fa8f
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/41984
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
5 years ago