diff options
author | David Benjamin <davidben@google.com> | 2016-06-26 03:43:01 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-06-28 00:42:27 +0300 |
commit | 7cdab4ac84140a9f0e46eecaf9cf91a4fa4bd7b2 (patch) | |
tree | 3768e140e31e399b1b511f02429d14e0b0005e8c /include/openssl/obj.h | |
parent | bb076e334c8d1747485ac9a9e4362c86214f9cc6 (diff) |
Make OBJ_NAME_do_all more OpenSSL-compatible.
OBJ_NAME in OpenSSL has an 'alias' field which some code consumes. We never
report anything OpenSSL considers an alias, so just leave it zero. It also has
a 'data' field which, confusingly, is a pointer to the EVP_CIPHER or EVP_MD
despite being a char pointer.
See calls to and implementation of OBJ_NAME_add in OpenSSL for comparison.
Change-Id: Ifc5c70424569db8783deb2fda7736c1954b5dd3a
Reviewed-on: https://boringssl-review.googlesource.com/8515
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/obj.h')
-rw-r--r-- | include/openssl/obj.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/obj.h b/include/openssl/obj.h index 7e24820c..367cfdc9 100644 --- a/include/openssl/obj.h +++ b/include/openssl/obj.h @@ -193,7 +193,9 @@ OPENSSL_EXPORT int OBJ_find_sigid_by_algs(int *out_sign_nid, int digest_nid, typedef struct obj_name_st { int type; + int alias; const char *name; + const char *data; } OBJ_NAME; #define OBJ_NAME_TYPE_MD_METH 1 |