configure struct updated according to modified cryptplug.h
This commit is contained in:
parent
18432f56be
commit
4e1814223b
@ -159,8 +159,10 @@ typedef enum {
|
|||||||
PinRequest_undef = 0,
|
PinRequest_undef = 0,
|
||||||
|
|
||||||
PinRequest_Always = 1,
|
PinRequest_Always = 1,
|
||||||
PinRequest_OncePerMail = 2,
|
PinRequest_WhenAddingCerts = 2,
|
||||||
PinRequest_OncePerSession = 3 // may be changed ...
|
PinRequest_AlwaysWhenSigning = 3,
|
||||||
|
PinRequest_OncePerSession = 4,
|
||||||
|
PinRequest_AfterMinutes = 5
|
||||||
} PinRequests;
|
} PinRequests;
|
||||||
|
|
||||||
// dummy values:
|
// dummy values:
|
||||||
@ -388,6 +390,21 @@ void setSignEmail( SignEmail );
|
|||||||
*/
|
*/
|
||||||
SignEmail signEmail( void );
|
SignEmail signEmail( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies whether a warning should be emitted when the user
|
||||||
|
tries to send an email message unsigned.
|
||||||
|
*/
|
||||||
|
void setWarnSendUnsigned( bool );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns whether a warning should be emitted when the user
|
||||||
|
tries to send an email message unsigned.
|
||||||
|
*/
|
||||||
|
bool warnSendUnsigned( void );
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies whether sent email messages should be stored
|
\brief Specifies whether sent email messages should be stored
|
||||||
with or without their signatures.
|
with or without their signatures.
|
||||||
@ -400,20 +417,6 @@ void setSaveSentSignatures( bool );
|
|||||||
*/
|
*/
|
||||||
bool saveSentSignatures( void );
|
bool saveSentSignatures( void );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
|
||||||
\brief Specifies whether a warning should be emitted if any
|
|
||||||
of the certificates involved in the signing process
|
|
||||||
expires in the near future.
|
|
||||||
*/
|
|
||||||
void setCertificateExpiryNearWarning( bool );
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
|
||||||
\brief Returns whether a warning should be emitted if any
|
|
||||||
of the certificates involved in the signing process
|
|
||||||
expires in the near future.
|
|
||||||
*/
|
|
||||||
bool certificateExpiryNearWarning( void );
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies whether a warning should be emitted if the
|
\brief Specifies whether a warning should be emitted if the
|
||||||
email address of the sender is not contained in the
|
email address of the sender is not contained in the
|
||||||
@ -440,6 +443,20 @@ void setNumPINRequests( PinRequests );
|
|||||||
*/
|
*/
|
||||||
PinRequests numPINRequests( void );
|
PinRequests numPINRequests( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies the interval in minutes the PIN must be reentered if
|
||||||
|
numPINRequests() is PinRequest_AfterMinutes.
|
||||||
|
*/
|
||||||
|
void setNumPINRequestsInterval( int );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the interval in minutes the PIN must be reentered if
|
||||||
|
numPINRequests() is PinRequest_AfterMinutes.
|
||||||
|
*/
|
||||||
|
int numPINRequestsInterval( void );
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies whether the certificate path should be
|
\brief Specifies whether the certificate path should be
|
||||||
followed to the root certificate or whether locally stored
|
followed to the root certificate or whether locally stored
|
||||||
@ -467,32 +484,84 @@ void setSignatureUseCRLs( bool );
|
|||||||
bool signatureUseCRLs( void );
|
bool signatureUseCRLs( void );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies whether a warning should be emitted if any
|
\brief Specifies whether a warning should be emitted if the
|
||||||
of the certificates involved in the signing process
|
signature certificate expires in the near future.
|
||||||
expires in the near future.
|
|
||||||
*/
|
*/
|
||||||
void setSignatureCRLExpiryNearWarning( bool );
|
void setSignatureCertificateExpiryNearWarning( bool );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Returns whether a warning should be emitted if any
|
\brief Returns whether a warning should be emitted if
|
||||||
of the certificates involved in the signing process
|
the signature certificate expires in the near future.
|
||||||
expires in the near future.
|
|
||||||
*/
|
*/
|
||||||
bool signatureCRLExpiryNearWarning( void );
|
bool signatureCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies the number of days which a certificate must
|
\brief Specifies the number of days which a signature certificate must
|
||||||
be valid before it is considered to expire in the near
|
be valid before it is considered to expire in the near
|
||||||
future.
|
future.
|
||||||
*/
|
*/
|
||||||
void setSignatureCRLNearExpiryInterval( int );
|
void setSignatureCertificateExpiryNearInterval( int );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Returns the number of days which a certificate must
|
\brief Returns the number of days which a signature certificate must
|
||||||
be valid before it is considered to expire in the near
|
be valid before it is considered to expire in the near
|
||||||
future.
|
future.
|
||||||
*/
|
*/
|
||||||
int signatureCRLNearExpiryInterval( void );
|
int signatureCertificateExpiryNearInterval( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies whether a warning should be emitted if the
|
||||||
|
CA certificate expires in the near future.
|
||||||
|
*/
|
||||||
|
void setCACertificateExpiryNearWarning( bool );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns whether a warning should be emitted if
|
||||||
|
the CA certificate expires in the near future.
|
||||||
|
*/
|
||||||
|
bool caCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies the number of days which a CA certificate must
|
||||||
|
be valid before it is considered to expire in the near
|
||||||
|
future.
|
||||||
|
*/
|
||||||
|
void setCACertificateExpiryNearInterval( int );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the number of days which a CA certificate must
|
||||||
|
be valid before it is considered to expire in the near
|
||||||
|
future.
|
||||||
|
*/
|
||||||
|
int caCertificateExpiryNearInterval( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies whether a warning should be emitted if the
|
||||||
|
root certificate expires in the near future.
|
||||||
|
*/
|
||||||
|
void setRootCertificateExpiryNearWarning( bool );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns whether a warning should be emitted if
|
||||||
|
the root certificate expires in the near future.
|
||||||
|
*/
|
||||||
|
bool rootCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies the number of days which a root certificate must
|
||||||
|
be valid before it is considered to expire in the near
|
||||||
|
future.
|
||||||
|
*/
|
||||||
|
void setRootCertificateExpiryNearInterval( int );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the number of days which a signature certificate must
|
||||||
|
be valid before it is considered to expire in the near
|
||||||
|
future.
|
||||||
|
*/
|
||||||
|
int rootCertificateExpiryNearInterval( void );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigCrypt
|
/*! \ingroup groupConfigCrypt
|
||||||
@ -576,6 +645,20 @@ void setEncryptEmail( EncryptEmail );
|
|||||||
*/
|
*/
|
||||||
EncryptEmail encryptEmail( void );
|
EncryptEmail encryptEmail( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Specifies whether a warning should be emitted when the user
|
||||||
|
tries to send an email message unencrypted.
|
||||||
|
*/
|
||||||
|
void setWarnSendUnencrypted( bool );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns whether a warning should be emitted when the user
|
||||||
|
tries to send an email message unencrypted.
|
||||||
|
*/
|
||||||
|
bool warnSendUnencrypted( void );
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigCrypt
|
/*! \ingroup groupConfigCrypt
|
||||||
\brief Specifies whether encrypted email messages should be
|
\brief Specifies whether encrypted email messages should be
|
||||||
stored encrypted or decrypted.
|
stored encrypted or decrypted.
|
||||||
@ -588,6 +671,20 @@ void setSaveMessagesEncrypted( bool );
|
|||||||
*/
|
*/
|
||||||
bool saveMessagesEncrypted( void );
|
bool saveMessagesEncrypted( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies whether the certificate path should be checked
|
||||||
|
during encryption.
|
||||||
|
*/
|
||||||
|
void setCheckCertificatePath( bool );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns whether the certificate path should be checked
|
||||||
|
during encryption.
|
||||||
|
*/
|
||||||
|
bool checkCertificatePath( void );
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigCrypt
|
/*! \ingroup groupConfigCrypt
|
||||||
\brief Specifies whether the certificate path should be
|
\brief Specifies whether the certificate path should be
|
||||||
followed to the root certificate or whether locally stored
|
followed to the root certificate or whether locally stored
|
||||||
@ -602,6 +699,73 @@ void setCheckEncryptionCertificatePathToRoot( bool );
|
|||||||
*/
|
*/
|
||||||
bool checkEncryptionCertificatePathToRoot( void );
|
bool checkEncryptionCertificatePathToRoot( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies whether a warning should be emitted if the
|
||||||
|
certificate of the receiver expires in the near future.
|
||||||
|
*/
|
||||||
|
void setReceiverCertificateExpiryNearWarning( bool );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns whether a warning should be emitted if the
|
||||||
|
certificate of the receiver expires in the near future.
|
||||||
|
*/
|
||||||
|
bool receiverCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies the number of days which a receiver certificate
|
||||||
|
must be valid before it is considered to expire in the near future.
|
||||||
|
*/
|
||||||
|
void setReceiverCertificateExpiryNearWarningInterval( int );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns the number of days which a receiver certificate
|
||||||
|
must be valid before it is considered to expire in the near future.
|
||||||
|
*/
|
||||||
|
int receiverCertificateExpiryNearWarningInterval( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies whether a warning should be emitted if
|
||||||
|
a certificate in the chain expires in the near future.
|
||||||
|
*/
|
||||||
|
void setCertificateInChainExpiryNearWarning( bool );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns whether a warning should be emitted if a
|
||||||
|
certificate in the chain expires in the near future.
|
||||||
|
*/
|
||||||
|
bool certificateInChainExpiryNearWarning( void );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies the number of days which a certificate in the chain
|
||||||
|
must be valid before it is considered to expire in the near future.
|
||||||
|
*/
|
||||||
|
void setCertificateInChainExpiryNearWarningInterval( int );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns the number of days which a certificate in the chain
|
||||||
|
must be valid before it is considered to expire in the near future.
|
||||||
|
*/
|
||||||
|
int certificateInChainExpiryNearWarningInterval( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Specifies whether a warning is emitted if the email address
|
||||||
|
of the receiver does not appear in the certificate.
|
||||||
|
*/
|
||||||
|
void setReceiverEmailAddressNotInCertificateWarning( bool );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigCrypt
|
||||||
|
\brief Returns whether a warning is emitted if the email address
|
||||||
|
of the receiver does not appear in the certificate.
|
||||||
|
*/
|
||||||
|
bool receiverEmailAddressNotInCertificateWarning( void );
|
||||||
|
|
||||||
|
|
||||||
/*! \ingroup groupConfigCrypt
|
/*! \ingroup groupConfigCrypt
|
||||||
\brief Specifies whether certificate revocation lists should
|
\brief Specifies whether certificate revocation lists should
|
||||||
be used.
|
be used.
|
||||||
|
@ -61,13 +61,10 @@ typedef struct {
|
|||||||
SendCertificates sendCertificates;
|
SendCertificates sendCertificates;
|
||||||
SignEmail signEmail;
|
SignEmail signEmail;
|
||||||
bool saveSentSignatures;
|
bool saveSentSignatures;
|
||||||
bool certificateExpiryNearWarning;
|
|
||||||
bool warnNoCertificate;
|
bool warnNoCertificate;
|
||||||
PinRequests numPINRequests;
|
PinRequests numPINRequests;
|
||||||
bool checkSignatureCertificatePathToRoot;
|
bool checkSignatureCertificatePathToRoot;
|
||||||
bool signatureUseCRLs;
|
bool signatureUseCRLs;
|
||||||
bool signatureCRLExpiryNearWarning;
|
|
||||||
int signatureCRLNearExpiryInterval;
|
|
||||||
EncryptionAlgorithm encryptionAlgorithm;
|
EncryptionAlgorithm encryptionAlgorithm;
|
||||||
EncryptEmail encryptEmail;
|
EncryptEmail encryptEmail;
|
||||||
bool saveMessagesEncrypted;
|
bool saveMessagesEncrypted;
|
||||||
@ -79,13 +76,28 @@ typedef struct {
|
|||||||
unsigned int numDirectoryServers;
|
unsigned int numDirectoryServers;
|
||||||
CertificateSource certificateSource;
|
CertificateSource certificateSource;
|
||||||
CertificateSource cRLSource;
|
CertificateSource cRLSource;
|
||||||
|
bool warnSendUnsigned;
|
||||||
|
int numPINRequestsInterval;
|
||||||
|
bool signatureCertificateExpiryNearWarning;
|
||||||
|
int signatureCertificateExpiryNearInterval;
|
||||||
|
bool cACertificateExpiryNearWarning;
|
||||||
|
int cACertificateExpiryNearInterval;
|
||||||
|
bool rootCertificateExpiryNearWarning;
|
||||||
|
int rootCertificateExpiryNearInterval;
|
||||||
|
bool warnSendUnencrypted;
|
||||||
|
bool checkCertificatePath;
|
||||||
|
bool receiverCertificateExpiryNearWarning;
|
||||||
|
int receiverCertificateExpiryNearWarningInterval;
|
||||||
|
bool certificateInChainExpiryNearWarning;
|
||||||
|
int certificateInChainExpiryNearWarningInterval;
|
||||||
|
bool receiverEmailAddressNotInCertificateWarning;
|
||||||
} Config;
|
} Config;
|
||||||
|
|
||||||
|
|
||||||
Config config;
|
Config config;
|
||||||
|
|
||||||
|
|
||||||
#define NEAR_EXPIRY 21
|
#define NEAR_EXPIRY 14
|
||||||
|
|
||||||
bool initialize()
|
bool initialize()
|
||||||
{
|
{
|
||||||
@ -94,13 +106,10 @@ bool initialize()
|
|||||||
config.sendCertificates = SendCert_SendChainWithRoot;
|
config.sendCertificates = SendCert_SendChainWithRoot;
|
||||||
config.signEmail = SignEmail_SignAll;
|
config.signEmail = SignEmail_SignAll;
|
||||||
config.saveSentSignatures = true;
|
config.saveSentSignatures = true;
|
||||||
config.certificateExpiryNearWarning = true;
|
|
||||||
config.warnNoCertificate = true;
|
config.warnNoCertificate = true;
|
||||||
config.numPINRequests = PinRequest_Always;
|
config.numPINRequests = PinRequest_Always;
|
||||||
config.checkSignatureCertificatePathToRoot = true;
|
config.checkSignatureCertificatePathToRoot = true;
|
||||||
config.signatureUseCRLs = true;
|
config.signatureUseCRLs = true;
|
||||||
config.signatureCRLExpiryNearWarning = true;
|
|
||||||
config.signatureCRLNearExpiryInterval = NEAR_EXPIRY;
|
|
||||||
config.encryptionAlgorithm = EncryptAlg_RSA;
|
config.encryptionAlgorithm = EncryptAlg_RSA;
|
||||||
config.encryptEmail = EncryptEmail_Ask;
|
config.encryptEmail = EncryptEmail_Ask;
|
||||||
config.saveMessagesEncrypted = true;
|
config.saveMessagesEncrypted = true;
|
||||||
@ -112,6 +121,22 @@ bool initialize()
|
|||||||
config.numDirectoryServers = 0;
|
config.numDirectoryServers = 0;
|
||||||
config.certificateSource = CertSrc_Server;
|
config.certificateSource = CertSrc_Server;
|
||||||
config.cRLSource = CertSrc_Server;
|
config.cRLSource = CertSrc_Server;
|
||||||
|
config.warnSendUnsigned = true;
|
||||||
|
config.numPINRequestsInterval = NEAR_EXPIRY;
|
||||||
|
config.signatureCertificateExpiryNearWarning = true;
|
||||||
|
config.signatureCertificateExpiryNearInterval = NEAR_EXPIRY;
|
||||||
|
config.cACertificateExpiryNearWarning = true;
|
||||||
|
config.cACertificateExpiryNearInterval = NEAR_EXPIRY;
|
||||||
|
config.rootCertificateExpiryNearWarning = true;
|
||||||
|
config.rootCertificateExpiryNearInterval = NEAR_EXPIRY;
|
||||||
|
config.warnSendUnencrypted = false;
|
||||||
|
config.checkCertificatePath = true;
|
||||||
|
config.receiverCertificateExpiryNearWarning = true;
|
||||||
|
config.receiverCertificateExpiryNearWarningInterval = NEAR_EXPIRY;
|
||||||
|
config.certificateInChainExpiryNearWarning = true;
|
||||||
|
config.certificateInChainExpiryNearWarningInterval = NEAR_EXPIRY;
|
||||||
|
config.receiverEmailAddressNotInCertificateWarning = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -198,6 +223,25 @@ SignEmail signEmail()
|
|||||||
return config.signEmail;
|
return config.signEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setWarnSendUnsigned( bool flag )
|
||||||
|
{
|
||||||
|
config.warnSendUnsigned = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool warnSendUnsigned()
|
||||||
|
{
|
||||||
|
return config.warnSendUnsigned;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setSaveSentSignatures( bool flag )
|
void setSaveSentSignatures( bool flag )
|
||||||
{
|
{
|
||||||
config.saveSentSignatures = flag;
|
config.saveSentSignatures = flag;
|
||||||
@ -208,16 +252,6 @@ bool saveSentSignatures()
|
|||||||
return config.saveSentSignatures;
|
return config.saveSentSignatures;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCertificateExpiryNearWarning( bool flag )
|
|
||||||
{
|
|
||||||
config.certificateExpiryNearWarning = flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool certificateExpiryNearWarning()
|
|
||||||
{
|
|
||||||
return config.certificateExpiryNearWarning;
|
|
||||||
}
|
|
||||||
|
|
||||||
void setWarnNoCertificate( bool flag )
|
void setWarnNoCertificate( bool flag )
|
||||||
{
|
{
|
||||||
config.warnNoCertificate = flag;
|
config.warnNoCertificate = flag;
|
||||||
@ -238,6 +272,26 @@ PinRequests numPINRequests()
|
|||||||
return config.numPINRequests;
|
return config.numPINRequests;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setNumPINRequestsInterval( int interval )
|
||||||
|
{
|
||||||
|
config.numPINRequestsInterval = interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
int numPINRequestsInterval()
|
||||||
|
{
|
||||||
|
return config.numPINRequestsInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setCheckSignatureCertificatePathToRoot( bool flag )
|
void setCheckSignatureCertificatePathToRoot( bool flag )
|
||||||
{
|
{
|
||||||
config.checkSignatureCertificatePathToRoot = flag;
|
config.checkSignatureCertificatePathToRoot = flag;
|
||||||
@ -258,26 +312,77 @@ bool signatureUseCRLs()
|
|||||||
return config.signatureUseCRLs;
|
return config.signatureUseCRLs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSignatureCRLExpiryNearWarning( bool flag )
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setSignatureCertificateExpiryNearWarning( bool flag )
|
||||||
{
|
{
|
||||||
config.signatureCRLExpiryNearWarning = flag;
|
config.signatureCertificateExpiryNearWarning = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool signatureCRLExpiryNearWarning()
|
bool signatureCertificateExpiryNearWarning( void )
|
||||||
{
|
{
|
||||||
return config.signatureCRLExpiryNearWarning;
|
return config.signatureCertificateExpiryNearWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSignatureCRLNearExpiryInterval( int interval )
|
void setSignatureCertificateExpiryNearInterval( int interval )
|
||||||
{
|
{
|
||||||
config.signatureCRLNearExpiryInterval = interval;
|
config.signatureCertificateExpiryNearInterval = interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
int signatureCRLNearExpiryInterval()
|
int signatureCertificateExpiryNearInterval( void )
|
||||||
{
|
{
|
||||||
return config.signatureCRLNearExpiryInterval;
|
return config.signatureCertificateExpiryNearInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setCACertificateExpiryNearWarning( bool flag )
|
||||||
|
{
|
||||||
|
config.cACertificateExpiryNearWarning = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool caCertificateExpiryNearWarning( void )
|
||||||
|
{
|
||||||
|
return config.cACertificateExpiryNearWarning;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCACertificateExpiryNearInterval( int interval )
|
||||||
|
{
|
||||||
|
config.cACertificateExpiryNearInterval = interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
int caCertificateExpiryNearInterval( void )
|
||||||
|
{
|
||||||
|
return config.cACertificateExpiryNearInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setRootCertificateExpiryNearWarning( bool flag )
|
||||||
|
{
|
||||||
|
config.rootCertificateExpiryNearWarning = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool rootCertificateExpiryNearWarning( void )
|
||||||
|
{
|
||||||
|
return config.rootCertificateExpiryNearWarning;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setRootCertificateExpiryNearInterval( int interval )
|
||||||
|
{
|
||||||
|
config.rootCertificateExpiryNearInterval = interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
int rootCertificateExpiryNearInterval( void )
|
||||||
|
{
|
||||||
|
return config.rootCertificateExpiryNearInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const char* encryptionConfigurationDialog(){ return 0; }
|
const char* encryptionConfigurationDialog(){ return 0; }
|
||||||
|
|
||||||
@ -307,6 +412,29 @@ EncryptEmail encryptEmail()
|
|||||||
return config.encryptEmail;
|
return config.encryptEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setWarnSendUnencrypted( bool flag )
|
||||||
|
{
|
||||||
|
config.warnSendUnencrypted = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool warnSendUnencrypted()
|
||||||
|
{
|
||||||
|
return config.warnSendUnencrypted;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setSaveMessagesEncrypted( bool flag )
|
void setSaveMessagesEncrypted( bool flag )
|
||||||
{
|
{
|
||||||
config.saveMessagesEncrypted = flag;
|
config.saveMessagesEncrypted = flag;
|
||||||
@ -317,6 +445,29 @@ bool saveMessagesEncrypted()
|
|||||||
return config.saveMessagesEncrypted;
|
return config.saveMessagesEncrypted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setCheckCertificatePath( bool flag )
|
||||||
|
{
|
||||||
|
config.checkCertificatePath = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool checkCertificatePath()
|
||||||
|
{
|
||||||
|
return config.checkCertificatePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setCheckEncryptionCertificatePathToRoot( bool flag )
|
void setCheckEncryptionCertificatePathToRoot( bool flag )
|
||||||
{
|
{
|
||||||
config.checkEncryptionCertificatePathToRoot = flag;
|
config.checkEncryptionCertificatePathToRoot = flag;
|
||||||
@ -327,6 +478,69 @@ bool checkEncryptionCertificatePathToRoot()
|
|||||||
return config.checkEncryptionCertificatePathToRoot;
|
return config.checkEncryptionCertificatePathToRoot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setReceiverCertificateExpiryNearWarning( bool flag )
|
||||||
|
{
|
||||||
|
config.receiverCertificateExpiryNearWarning = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool receiverCertificateExpiryNearWarning()
|
||||||
|
{
|
||||||
|
return config.receiverCertificateExpiryNearWarning;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setReceiverCertificateExpiryNearWarningInterval( int interval )
|
||||||
|
{
|
||||||
|
config.receiverCertificateExpiryNearWarningInterval = interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
int receiverCertificateExpiryNearWarningInterval()
|
||||||
|
{
|
||||||
|
return config.receiverCertificateExpiryNearWarningInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCertificateInChainExpiryNearWarning( bool flag )
|
||||||
|
{
|
||||||
|
config.certificateInChainExpiryNearWarning = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool certificateInChainExpiryNearWarning()
|
||||||
|
{
|
||||||
|
return config.certificateInChainExpiryNearWarning;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCertificateInChainExpiryNearWarningInterval( int interval )
|
||||||
|
{
|
||||||
|
config.certificateInChainExpiryNearWarningInterval = interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
int certificateInChainExpiryNearWarningInterval()
|
||||||
|
{
|
||||||
|
return config.certificateInChainExpiryNearWarningInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setReceiverEmailAddressNotInCertificateWarning( bool flag )
|
||||||
|
{
|
||||||
|
config.receiverEmailAddressNotInCertificateWarning = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool receiverEmailAddressNotInCertificateWarning()
|
||||||
|
{
|
||||||
|
return config.receiverEmailAddressNotInCertificateWarning;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setEncryptionUseCRLs( bool flag )
|
void setEncryptionUseCRLs( bool flag )
|
||||||
{
|
{
|
||||||
config.encryptionUseCRLs = flag;
|
config.encryptionUseCRLs = flag;
|
||||||
|
Loading…
Reference in New Issue
Block a user