|
NAMEX509_NAME_hash ,
X509_issuer_name_hash ,
X509_subject_name_hash ,
X509_NAME_hash_old ,
X509_issuer_name_hash_old ,
X509_subject_name_hash_old —
calculate SHA-1 or MD5 hashes of X.501 Name objects
SYNOPSIS#include <openssl/x509.h>
unsigned long
unsigned long
unsigned long
unsigned long
unsigned long
unsigned long
DESCRIPTIONX509_NAME_hash () calculates an
SHA1(3)
hash of the DER-encoded form of name. It is for example
used by
X509_LOOKUP_hash_dir(3)
to locate certificate files in the file system.
RETURN VALUESThese functions return the hash value or 0 if an error occurs.SEE ALSOi2d_X509_NAME(3), X509_get_subject_name(3), X509_LOOKUP_new(3), X509_NAME_digest(3), X509_NAME_new(3)HISTORYX509_subject_name_hash () first appeared in SSLeay 0.4.0,
X509_issuer_name_hash () in SSLeay 0.5.1, and
X509_NAME_hash () in SSLeay 0.8.0. They were switched
to hashing the DER representation of the name rather than an ASCII rendering
in SSLeay 0.9.0 and have all been available since OpenBSD
2.4.
They were switched to using SHA1 instead of MD5 in OpenSSL 1.0.0 and in OpenBSD 4.9.
Visit the GSP FreeBSD Man Page Interface. |