Method: OpenSSL::X509::Name#hash

Defined in:
ossl_x509name.c

#hashInteger

The hash value returned is suitable for use as a certificate’s filename in a CA path.

Returns:



353
354
355
356
357
358
359
360
361
362
363
364
# File 'ossl_x509name.c', line 353

static VALUE
ossl_x509name_hash(VALUE self)
{
    X509_NAME *name;
    unsigned long hash;

    GetX509Name(self, name);

    hash = X509_NAME_hash(name);

    return ULONG2NUM(hash);
}