Commit ce023e77 authored by Viktor Dukhovni's avatar Viktor Dukhovni
Browse files

Fix MacOS/X build warnings



Commit 7823d792 added DEFINE_LHASH_OF
to a C source file.  DEFINE_LHASH_OF() and DEFINE_STACK_OF() must
be used only in header files to avoid clang warnings for unused
static-inline functions.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 24f0b104
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -647,8 +647,6 @@ static unsigned long xname_hash(const X509_NAME *a)
    return X509_NAME_hash((X509_NAME *)a);
}

DEFINE_LHASH_OF(X509_NAME);

/**
 * Load CA certs from a file into a ::STACK. Note that it is somewhat misnamed;
 * it doesn't really have anything to do with clients (except that a common use
+2 −1
Original line number Diff line number Diff line
@@ -685,7 +685,8 @@ struct ssl_comp_st {
};

DEFINE_LHASH_OF(SSL_SESSION);

/* Needed in ssl_cert.c */
DEFINE_LHASH_OF(X509_NAME);

struct ssl_ctx_st {
    const SSL_METHOD *method;