NSSSWriteSharedSecret
Creates a SecretID according to the Shared Secret format utilizing either the prefix SS_App or SS_CredSet.
#include <nssscl.h>
SS_EXTERN_LIBCALL(int) NSSSWriteSharedSecret
(
void *handle,
SS_SH_SECRET_ID_T *pSharedSecret,
SSS_CONTEXT_T *context,
SS_OBJECT_DN_T targetObjDN,
unsigned long *ssFlags,
SS_PWORD_T *epPassword,
SS_EXT_T *ext
);
NOTE:For binding to server over LDAP/SSL this parameter is mandatory and it should be in fully qualified LDAP form ("cn=user, ou=users, o=novell").
The internal buffer is parsed according to the shared secret format defined by the parsing library. The resulting data is passed into the secret buffer for passage into NSSSWriteSecret and stored as shared secrets in the SecretStore. Consequently, this function provide flexibility in making calls to trees and user DNs other than the primary connection.