IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

CertEncoded Property

The certificate (PEM/base64 encoded).

Syntax

ANSI (Cross Platform)
int GetCertEncoded(int iCertIndex, char* &lpCertEncoded, int &lenCertEncoded);
int SetCertEncoded(int iCertIndex, const char* lpCertEncoded, int lenCertEncoded); Unicode (Windows) INT GetCertEncoded(INT iCertIndex, LPSTR &lpCertEncoded, INT &lenCertEncoded);
INT SetCertEncoded(INT iCertIndex, LPCSTR lpCertEncoded, INT lenCertEncoded);
- (NSString*)certEncoded:(int)certIndex;
- (void)setCertEncoded:(int)certIndex:(NSString*)newCertEncoded;

- (NSData*)certEncodedB:(int)certIndex; - (void)setCertEncodedB:(int)certIndex:(NSData*)newCertEncoded;
#define PID_CMS_CERTENCODED 2

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_CMS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_CMS_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_CMS_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

""

Remarks

The certificate (PEM/base64 encoded). This property is used to assign a specific certificate. The CertStore and CertSubject properties may also be used to specify a certificate.

When CertEncoded is set, a search is initiated in the current CertStore for the private key of the certificate. If the key is found, CertSubject is updated to reflect the full subject of the selected certificate, otherwise CertSubject is set to empty string.

The CertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the CertCount property.

This property is not available at design time.

Data Type

Binary String

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