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.
Definition at line 279 of file cryptplug.h. |
|
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.
Definition at line 501 of file cryptplugwrapper.h. |
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
Definition at line 357 of file cryptplug.cpp. |
|
Checks whether the signature of a message is valid.
If
If
Depending on the configuration, MUAs might not need to use this. If Definition at line 1907 of file cryptplug.cpp. |
|
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
Definition at line 939 of file cryptplugwrapper.cpp. References StructuringInfoWrapper::data, and CryptPlugWrapper::signMessage(). Referenced by CryptPlugWrapper::signMessage(). |
|
Checks whether the signature of a message is valid.
If
If
Depending on the configuration, MUAs might not need to use this. If Definition at line 953 of file cryptplugwrapper.cpp. References CryptPlugWrapper::checkMessageSignature(). Referenced by CryptPlugWrapper::checkMessageSignature(). |
|
Stores the certificates that follow with the message
Definition at line 973 of file cryptplugwrapper.cpp. References CryptPlugWrapper::storeCertificatesFromMessage(). Referenced by CryptPlugWrapper::storeCertificatesFromMessage(). |