Example 3. Using CST_import_PKCS12().

    // implement callback function
    int confirm_cb(X509 * xcert, 
        cst_t_cert_folder * folder, cst_t_cert_purpose * purpose,
        unsigned char * out_pass, int is_pair, int *cancel, 
        void * user_data)
    {
        if (is_pair)
        {
            *out_pass = "secret";
            *purpose = CST_PURPOSE_SSL_CLIENT;
            *folder = CST_FOLDER_PERSONAL;
            *cancel = FALSE;
            return TRUE;
        }
        else
        {
            *purpose = CST_PURPOSE_CA;
            *folder = CST_FOLDER_CA;
            *cancel = FALSE;
            return TRUE;
        }
    }

Generated on Fri Sep 28 12:57:35 2007 for Certman by  doxygen 1.5.1