CryptoSys PKI Pro Manual

X509_CertIssuerName

Extracts issuer's distinguished name from X.509 certificate.

VBA/VB6 Syntax

Public Declare Function X509_CertIssuerName Lib "diCrPKI.dll" (ByVal strCertFile As String, ByVal strOutput As String, ByVal nOutChars As Long, ByVal strDelim As String, ByVal nOptions As Long) As Long

nRet = X509_CertIssuerName(strCertFile, strOutput, nOutChars, strDelim, nOptions)

C/C++ Syntax

long __stdcall X509_CertIssuerName(const char *szCertFile, char *szOutput, long nOutChars, const char *szDelim, long nOptions);

Parameters

szCertFile
[in] with the filename of the X.509 certificate (or base64 representation).
szOutput
[out] to receive the name string.
nOutChars
[in] specifying the maximum number of characters to be received.
szDelim
[in] specifying the character to use as a delimiter (default ";").
nOptions
[in] Option flags. Select one of:
PKI_DEFAULT (0) (default)
PKI_X509_LDAP to output the LDAP string representation as per RFC 4514
PKI_X509_LATIN1 to try and convert Unicode/UTF-8/T.61 attribute strings to Latin-1 (8-bit ASCII)

Returns (VBA/C)

Returns the number of characters set in szOutput. If nOutChars is zero it returns the maximum number of characters required. C/C++ users should allocate one extra for the terminating NUL character. If an error occurs, it returns a negative error code.

The output using the PKI_X509_LDAP option is suitable as content for an <X509IssuerName> node in an XML-DSIG document.

.NET Equivalent

X509.CertIssuerName Method

Remarks

See the remarks for X509_CertSubjectName().

Example

See X509_CertSubjectName.

See Also

X509_CertIssuerName X509_HashIssuerAndSN X509_QueryCert

[Contents] [Index]

[PREV: X509_CertIssuedOn...]   [Contents]   [Index]   
   [NEXT: X509_CertIsValidNow...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.