mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-17 04:49:32 +00:00
ability to change ca option back to user
svn path=/trunk/kdesupport/qca/; revision=440368
This commit is contained in:
parent
acabfd9986
commit
ac7b41cfcd
@ -190,7 +190,7 @@ namespace QCA
|
|||||||
/**
|
/**
|
||||||
Information on the subject of the certificate
|
Information on the subject of the certificate
|
||||||
|
|
||||||
\sa setIn
|
\sa setInfo
|
||||||
*/
|
*/
|
||||||
CertificateInfo info() const; // request or create
|
CertificateInfo info() const; // request or create
|
||||||
|
|
||||||
@ -205,10 +205,10 @@ namespace QCA
|
|||||||
QStringList policies() const; // request or create
|
QStringList policies() const; // request or create
|
||||||
|
|
||||||
/**
|
/**
|
||||||
test if the certificate options include the certificate being a
|
test if the certificate is a CA cert
|
||||||
certificate authority
|
|
||||||
|
|
||||||
\sa setAsCA
|
\sa setAsCA
|
||||||
|
\sa setAsUser
|
||||||
*/
|
*/
|
||||||
bool isCA() const; // request or create
|
bool isCA() const; // request or create
|
||||||
|
|
||||||
@ -267,13 +267,17 @@ namespace QCA
|
|||||||
void setPolicies(const QStringList &policies);
|
void setPolicies(const QStringList &policies);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
set the certificate options to include the certificate being
|
set the certificate to be a CA cert
|
||||||
a certificate authority
|
|
||||||
|
|
||||||
\param pathLimit the number of intermediate certificates allowable
|
\param pathLimit the number of intermediate certificates allowable
|
||||||
*/
|
*/
|
||||||
void setAsCA(int pathLimit = 8); // value from Botan
|
void setAsCA(int pathLimit = 8); // value from Botan
|
||||||
|
|
||||||
|
/**
|
||||||
|
set the certificate to be a user cert (this is the default)
|
||||||
|
*/
|
||||||
|
void setAsUser();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the serial number property on this certificate
|
Set the serial number property on this certificate
|
||||||
|
|
||||||
|
@ -171,6 +171,12 @@ void CertificateOptions::setAsCA(int pathLimit)
|
|||||||
d->pathLimit = pathLimit;
|
d->pathLimit = pathLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CertificateOptions::setAsUser()
|
||||||
|
{
|
||||||
|
d->isCA = false;
|
||||||
|
d->pathLimit = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void CertificateOptions::setSerialNumber(const QBigInteger &i)
|
void CertificateOptions::setSerialNumber(const QBigInteger &i)
|
||||||
{
|
{
|
||||||
d->serial = i;
|
d->serial = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user