Signature Actions
[Signing and Encrypting Actions]
Enumerations | |
enum | { SigStat_VALID = 0x0001, SigStat_GREEN = 0x0002, SigStat_RED = 0x0004, SigStat_KEY_REVOKED = 0x0010, SigStat_KEY_EXPIRED = 0x0020, SigStat_SIG_EXPIRED = 0x0040, SigStat_KEY_MISSING = 0x0080, SigStat_CRL_MISSING = 0x0100, SigStat_CRL_TOO_OLD = 0x0200, SigStat_BAD_POLICY = 0x0400, SigStat_SYS_ERROR = 0x0800, SigStat_NUMERICAL_CODE = 0x8000 } |
enum | { SigStatus_UNKNOWN = 0x0000, SigStatus_VALID = SigStat_VALID, SigStatus_GREEN = SigStat_GREEN, SigStatus_RED = SigStat_RED, SigStatus_KEY_REVOKED = SigStat_KEY_REVOKED, SigStatus_KEY_EXPIRED = SigStat_KEY_EXPIRED, SigStatus_SIG_EXPIRED = SigStat_SIG_EXPIRED, SigStatus_KEY_MISSING = SigStat_KEY_MISSING, SigStatus_CRL_MISSING = SigStat_CRL_MISSING, SigStatus_CRL_TOO_OLD = SigStat_CRL_TOO_OLD, SigStatus_BAD_POLICY = SigStat_BAD_POLICY, SigStatus_SYS_ERROR = SigStat_SYS_ERROR, SigStatus_NUMERICAL_CODE = 0x8000 } |
Functions | |
bool | CryptPlug::signMessage (const char *cleartext, char **ciphertext, const size_t *cipherLen, const char *certificate, struct StructuringInfo *structuring, int *errId, char **errTxt, SendCertificates sendCertificates, SignatureCompoundMode signatureCompoundMode) |
bool | CryptPlug::checkMessageSignature (char **cleartext, const char *signaturetext, bool signatureIsBinary, int signatureLen, struct SignatureMetaData *sigmeta, char **attrOrder, const char *unknownAttrsHandling) |
bool | CryptPlug::storeCertificatesFromMessage (const char *ciphertext) |
bool | CryptPlugWrapper::signMessage (const char *cleartext, char **ciphertext, const size_t *cipherLen, const char *certificate, StructuringInfoWrapper &structuring, int *errId, char **errTxt) |
bool | CryptPlugWrapper::checkMessageSignature (char **cleartext, const char *signaturetext, bool signatureIsBinary, int signatureLen, CryptPlug::SignatureMetaData *sigmeta) |
bool | CryptPlugWrapper::storeCertificatesFromMessage (const char *ciphertext) |
Detailed Description
This section describes methods that are used for working with signatures.Enumeration Type Documentation
|
Flags used to compose the SigStatusFlags value.
This status flags are used to compose the SigStatusFlags value returned in The normal flags may not be used together with the special SigStat_NUMERICAL_CODE flag. When finding the special SigStat_NUMERICAL_CODE flag in a SigStatusFlags value you can obtain the respective error code number by substracting the SigStatusFlags value by SigStat_NUMERICAL_CODE: this is used to transport special status information NOT matching any of the normal predefined status codes.
|
|
Flags used to compose the SigStatusFlags value.
This status flags are used to compose the SigStatusFlags value returned in The normal flags may not be used together with the special SigStatus_NUMERICAL_CODE flag. When finding the special SigStatus_NUMERICAL_CODE flag in a SigStatusFlags value you can obtain the respective error code number by substracting the SigStatusFlags value by SigStatus_NUMERICAL_CODE: this is used to transport special status information NOT matching any of the normal predefined status codes.
|
Function Documentation
|
Signs a message
The signature role is specified by
If the message could be signed, the function returns
Use the StructuringInfo data returned in parameter
|
|
Checks whether the signature of a message is valid.
If
If
Depending on the configuration, MUAs might not need to use this. If |
|
Stores the certificates that follow with the message Definition at line 573 of file cryptplug.cpp. |
|
Signs a message
The signature role is specified by
If the message could be signed, the function returns
Use the StructuringInfoWrapper data returned in parameter
References StructuringInfoWrapper::data. |
|
Checks whether the signature of a message is valid.
If
If
Depending on the configuration, MUAs might not need to use this. If |
|
Stores the certificates that follow with the message Definition at line 973 of file cryptplugwrapper.cpp. |