CertificateReceived Event

Fired when a certificate is received from the remote host.

Syntax

ANSI (Cross Platform)
virtual int FireCertificateReceived(OFTPServerCertificateReceivedEventParams *e);
typedef struct {
int ConnectionId;
const char *CertificateFileName;
int CertificateExchangeType; int reserved; } OFTPServerCertificateReceivedEventParams; Unicode (Windows) virtual INT FireCertificateReceived(OFTPServerCertificateReceivedEventParams *e);
typedef struct {
INT ConnectionId;
LPCWSTR CertificateFileName;
INT CertificateExchangeType; INT reserved; } OFTPServerCertificateReceivedEventParams;
- (void)onCertificateReceived:(int)connectionId :(NSString*)certificateFileName :(int)certificateExchangeType;
#define EID_OFTPSERVER_CERTIFICATERECEIVED 3

virtual INT IPWORKSEDI_CALL FireCertificateReceived(INT &iConnectionId, LPSTR &lpszCertificateFileName, INT &iCertificateExchangeType);

Remarks

This event provides information about the certificate file that was sent by the remote host.

When the remote host sends a certificate using the Certificate Exchange feature of OFTP 2.0, this event provides information about it. The certificate file will be written to the DownloadDirectory. After the file is written to DownloadDirectory this event will fire.

The CertificateFilemame parameter holds the filename of the received certificate.

The CertificateExchangeType parameter identifies the type of request associated with the certificate. Possible values are:

0Request: The class received a certificate and request from the remote host. Respond using the ExchangeCertificate method using a CertificateExchangeType of 3 (Deliver). The response may be in a separate session.
1Replace: The class received a certificate from the remote host. No response is expected. The certificate received here invalidates any previously stored certificates for this configuration.
2Deliver: The class received a certificate from the remote host. This is either a response to a certificate request, or a new additional certificates from the remote host. This will not invalidate previous certificates stored for this configuration.

ConnectionId identifies the connected client.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]