mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
hashNum() is an unsigned integer
This commit is contained in:
parent
9dacee6c9a
commit
b8b368d787
@ -86,7 +86,7 @@ QSqlError pki_x509::insertSqlData()
|
||||
"VALUES (?, ?, ?, ?, ?, ?, ?)");
|
||||
q.bindValue(0, sqlItemId);
|
||||
q.bindValue(1, hash());
|
||||
q.bindValue(2, (uint)getIssuerName().hashNum());
|
||||
q.bindValue(2, getIssuerName().hashNum());
|
||||
q.bindValue(3, getSerial().toHex());
|
||||
q.bindValue(4, signer ? signer->getSqlItemId() : QVariant());
|
||||
q.bindValue(5, (int)isCA());
|
||||
|
||||
@ -55,7 +55,7 @@ QSqlError pki_x509super::insertSqlData()
|
||||
SQL_PREPARE(q, "INSERT INTO x509super (item, subj_hash, pkey, key_hash) "
|
||||
"VALUES (?, ?, ?, ?)");
|
||||
q.bindValue(0, sqlItemId);
|
||||
q.bindValue(1, (uint)getSubject().hashNum());
|
||||
q.bindValue(1, getSubject().hashNum());
|
||||
q.bindValue(2, keySqlId);
|
||||
q.bindValue(3, pubHash());
|
||||
q.exec();
|
||||
|
||||
@ -143,7 +143,7 @@ QString x509name::hash() const
|
||||
}
|
||||
|
||||
/* 32 bit signed integer */
|
||||
unsigned long x509name::hashNum() const
|
||||
unsigned x509name::hashNum() const
|
||||
{
|
||||
return X509_NAME_hash(xn) & 0x7fffffffL;
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ class x509name
|
||||
QString getMostPopular() const;
|
||||
QString taggedValues() const;
|
||||
QString hash() const;
|
||||
unsigned long hashNum() const;
|
||||
unsigned hashNum() const;
|
||||
bool search(const QRegExp &pattern) const;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user