{
return(X509_NAME_hash(x->cert_info->subject));
}
+
+#ifndef NO_SHA
/* Compare two certificates: they must be identical for
* this to work.
*/
/* ensure hash is valid */
X509_check_purpose(a, -1, 0);
X509_check_purpose(b, -1, 0);
+
return memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH);
}
+#endif
int X509_NAME_cmp(X509_NAME *a, X509_NAME *b)
{
#include <openssl/pem.h>
#include <openssl/x509.h>
-#if defined(NO_RSA) && !defined(NO_SSL2)
+#if (defined(NO_RSA) || defined(NO_MD5)) && !defined(NO_SSL2)
#define NO_SSL2
#endif