certmap_info
structure. NSAPI_PUBLIC
int ldapu_certmap_info_attrval (void *certmap_info,
const char *attr, char **val);
The following table lists the names of the standard attributes in the certmap.conf
file. You can pass these names in the attr
argument to the function.
LDAPU_SUCCESS
, if the function was successful.
ldapu_err2string()
to get more information on the problem.)certmap.conf
file and are loaded into memory as a certmap_info
structure.
You can get handle to the certmap_info
structure in the following ways:
The type specifications for these functions specify that the certmap_info
structure for the CA who issued the certificate is passed into the function.
For more details, see "CertMapFn_t (Mapping Function)", "CertSearchFn_t (Search Function)", and "CertVerifyFn_t (Verification Function)".
ldapu_issuer_certinfo()
function. You can call this function to get the configuration information for a specified CA.
certmap.conf
file. For example, suppose you add the attribute custom_name
with the value custom_value
:certmap ace ou=Ace Certificate Authority, o=Ace Industry, c=US
ace:library /export/netscape/suitespot/userdb/example.so
ace:InitFn plugin_init_fn
ace:DNComps o, c
ace:FilterComps mail, uid
ace:verifycert on
ace:custom_name custom_valueYou can get the value of this attribute (
custom_value
) by calling this function:ldapu_certmap_info_attrval( certmap_info, "custom_name", &my_val );After you are done working with the value in the
val
argument, you should free it by calling
ldapu_free()
.
ldapu_issuer_certinfo()
, ldapu_free()
.