Skip to content

Commit

Permalink
Remove duplicate X509_OBJECT_new and X509_OBJECT_free declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhop committed Apr 29, 2024
1 parent c25dc2a commit 8853283
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/openssl/x509.h
Original file line number Diff line number Diff line change
Expand Up @@ -3279,12 +3279,6 @@ OPENSSL_EXPORT int X509_LOOKUP_add_dir(X509_LOOKUP *lookup, const char *path,
(X509_V_FLAG_POLICY_CHECK | X509_V_FLAG_EXPLICIT_POLICY | \
X509_V_FLAG_INHIBIT_ANY | X509_V_FLAG_INHIBIT_MAP)

// X509_OBJECT_new allocates an |X509_OBJECT| on the heap.
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);

// X509_OBJECT_free frees an |X509_OBJECT| from the heap.
OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *a);

// X509_OBJECT_new returns a newly-allocated, empty |X509_OBJECT| or NULL on
// error.
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);
Expand Down

0 comments on commit 8853283

Please sign in to comment.