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
…1560)

### Issues:
Resolves #1556

### Description of changes: 
Remove the duplicate X509_OBJECT_new and X509_OBJECT_free declarations
from #1506.

### Testing:
I'm still looking into why our CI didn't catch this and what we can add
that would catch this in the future.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
  • Loading branch information
andrewhop authored Apr 29, 2024
1 parent 2ea6706 commit 388cbe7
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 388cbe7

Please sign in to comment.