SetFTPTrustCertificate

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetFTPTrustCertificate (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int iValue);

Description

Sets the Trust Certificate property of the stored FTP connection identified by dwConnectionID. This property describes how the Printer Driver is handling untrusted cerificates.

Parameters

BlackIceDEVMODE* pDevMode

Pointer to the BlackIceDEVMODE structure.

 

DWORD dwConnectionID

The ID of the connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection functions.

 

int iValue

The new value of the property. The value can be one of the values from the FTPTrustCertificate enum:

enum FTPTrustCertificate
{
            FTP_CERTIFICATE_NOT_TRUSTED = 0, // A dialog pops with options to
                                                                                    // accept or reject the certificate
            FTP_CERTIFICATE_TRUSTED = 1        // Always accept the certificate
                                                                                    // and do not show dialog
};

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None