ldapssl_set_client_cert

Specifies the client certificate to be used with client-based certificate authentication (CBCA).

LDAP Version:v3
Library:*ldapssl.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap_ssl.h>
  
  int ldapssl_set_client_cert (
     void   *cert,
     int     type
     void   *password);
  
  

Parameters

cert

(IN) Points to the encoded client certificate file.

type

(IN) Certificate type. This must be one of the following values:

  • LDAPSSL_CERT_FILETYPE_B64

  • LDAPSSL_CERT_FILETYPE_DER

  • LDAPSSL_CERT_BUFFTYPE_B64

  • LDAPSSL_CERT_BUFFTYPE_DER

password

(IN) Points to the client certificate password.

Return Values

0

Success

-1

Failure

Remarks

For sample code, see mutual.c,.

See Also

ldapssl_set_client_private_key