From: Yu Watanabe Date: Sat, 25 Oct 2025 01:26:46 +0000 (+0900) Subject: openssl-util: drop unused functions X-Git-Tag: v259-rc1~246^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73063abf24557bdcd4d17418a778d1e36d9781ef;p=thirdparty%2Fsystemd.git openssl-util: drop unused functions They were introduced by 5f163921e9ff6d735798db259c47543822f81b5c, but never used. --- diff --git a/src/shared/openssl-util.h b/src/shared/openssl-util.h index 0cead423673..0084d62fe02 100644 --- a/src/shared/openssl-util.h +++ b/src/shared/openssl-util.h @@ -190,16 +190,6 @@ static inline void* EVP_PKEY_free(EVP_PKEY *p) { return NULL; } -static inline void* ASN1_TYPE_free(ASN1_TYPE *p) { - assert(p == NULL); - return NULL; -} - -static inline void* ASN1_STRING_free(ASN1_STRING *p) { - assert(p == NULL); - return NULL; -} - static inline int string_hashsum(const char *s, size_t len, const char *md_algorithm, char **ret) { return -EOPNOTSUPP; } @@ -208,8 +198,6 @@ static inline int string_hashsum(const char *s, size_t len, const char *md_algor DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(X509*, X509_free, NULL); DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(EVP_PKEY*, EVP_PKEY_free, NULL); -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_TYPE*, ASN1_TYPE_free, NULL); -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_STRING*, ASN1_STRING_free, NULL); struct OpenSSLAskPasswordUI { AskPasswordRequest request;