...
The info item "info" should be checked after this call has been invoked.
BID_InitTransaction
Anchor | ||||
---|---|---|---|---|
|
Syntax
Code Block | ||
---|---|---|
| ||
int BID_InitTransaction ( const SESSION_HANDLE sessioncontext, const char* encKey, const char* encData, const char* encAuth, const char* operation, const char* sid, char** response ); |
...
Parameter | Type | In/Out | Description |
---|---|---|---|
sessioncontext | SESSION_HANDLE | in | Session context |
transactionreference | const char* | in | The transaction reference returned from previous call to BID_RequestMobileAction |
Text | const char* | in | The text for the SMS. Maximum 118 characters |
Additional functionality
BID_SignData
Syntax
Code Block | ||
---|---|---|
| ||
int BID_SignData(const SESSION_HANDLE sessioncontext,
const unsigned char* data,
const size_t datalen
char** pkcs7 ); |
Purpose
BID_SignData can be used to sign and create a PKCS#7 signature outside of a BankID transaction.
The infoitem 'cmsFormat' can be set in advance to change the format of the resulting PKCS7 as explained in BID_InitTransaction.
Parameter | Type | In/Out | Description |
---|---|---|---|
sessioncontext | SESSION_HANDLE | in | Session context |
data | const char* | in | The data to be signed |
datalen | const char* | in | Length of the data to be signed |
pkcs7 | char ** | out | The signature (PKCS7) |
BID_GetOwnCertStatus
Syntax
Code Block | ||
---|---|---|
| ||
int BID_GetOwnCertStatus(const SESSION_HANDLE sessioncontext,
char** ocspresponse ); |
Purpose
BID_GetOwnCertStatus can be used to do a Validation Authority (VA) lookup on the merchants own signing certificate.
The infoitem 'ocspFormat' can be set in advance to change the format of the resulting OCSP Response as explained in BID_InitTransaction.
Parameter | Type | In/Out | Description |
---|---|---|---|
sessioncontext | SESSION_HANDLE | in | Session context |
ocspresponse | char ** | out | The OCSP response for the merchant signing certificate |