]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
openssl-util: drop unused functions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 01:26:46 +0000 (10:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 01:26:49 +0000 (10:26 +0900)
They were introduced by 5f163921e9ff6d735798db259c47543822f81b5c, but
never used.

src/shared/openssl-util.h

index 0cead423673ed73893edc12028c9bc3f8acc450a..0084d62fe02ad8ffa570b1b92c9a39f924a95cea 100644 (file)
@@ -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;