Skip to content

Commit 388cbe7

Browse files
authored
Remove duplicate X509_OBJECT_new and X509_OBJECT_free declarations (#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.
1 parent 2ea6706 commit 388cbe7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/openssl/x509.h

-6
Original file line numberDiff line numberDiff line change
@@ -3279,12 +3279,6 @@ OPENSSL_EXPORT int X509_LOOKUP_add_dir(X509_LOOKUP *lookup, const char *path,
32793279
(X509_V_FLAG_POLICY_CHECK | X509_V_FLAG_EXPLICIT_POLICY | \
32803280
X509_V_FLAG_INHIBIT_ANY | X509_V_FLAG_INHIBIT_MAP)
32813281

3282-
// X509_OBJECT_new allocates an |X509_OBJECT| on the heap.
3283-
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);
3284-
3285-
// X509_OBJECT_free frees an |X509_OBJECT| from the heap.
3286-
OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *a);
3287-
32883282
// X509_OBJECT_new returns a newly-allocated, empty |X509_OBJECT| or NULL on
32893283
// error.
32903284
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);

0 commit comments

Comments
 (0)