NETSCAPE_SPKI_sign

Sign a Netscape SPKI with a private key and message digest.

Synopsis

Declared in <openssl/x509.h>

int
NETSCAPE_SPKI_sign(
    NETSCAPE_SPKI* x,
    EVP_PKEY* pkey,
    EVP_MD const* md);

Return Value

Number of bytes in the signature on success, or 0 on failure.

Parameters

NameDescription
xSPKI whose SPKAC payload is signed; signature fields are updated in place.
pkeyPrivate key used to create the signature.
mdDigest algorithm, or NULL to use the key type's default.