3
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
8
#include "pki_x509super.h"
10
pki_x509super::pki_x509super(const QString name)
16
pki_x509super::~pki_x509super()
23
pki_key *pki_x509super::getRefKey() const
28
void pki_x509super::setRefKey(pki_key *ref)
30
if (ref == NULL || ref->isPubKey() || privkey != NULL )
32
pki_key *mk = getPubKey();
33
if (ref->compare(mk)) {
41
void pki_x509super::delRefKey(pki_key *ref)
43
if (ref != privkey || ref == NULL)
49
void pki_x509super::autoIntName()
51
int nids[] = { NID_commonName, NID_pkcs9_emailAddress,
52
NID_organizationalUnitName, NID_organizationName, NID_undef };
54
x509name subject = getSubject();
57
for (i = 0; nids[i] != NID_undef; i++) {
58
s = subject.getEntryByNid(nids[i]);
63
s = subject.getEntry(-1);