mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Depending on the OpenSSL version some OIDs are known, some are not. When reading "oids.txt" file and adding the new OID definitions: - Silently skip definitions that are 100% identical to the OpenSSL values. - Give a hint to change identifiers that are used for a different OID - Give a hint about definitions that differ to remove them from the file. Also accept them as Alias when reading dn.txt and eku.txt
30 lines
622 B
C++
30 lines
622 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2011 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __OID_H
|
|
#define __OID_H
|
|
|
|
class QString;
|
|
#include <QList>
|
|
#include <QMap>
|
|
|
|
extern int first_additional_oid;
|
|
extern QMap<QString,const char*> oid_name_clash;
|
|
|
|
typedef QList<int> NIDlist;
|
|
/* reads additional OIDs from a file: oid, sn, ln */
|
|
|
|
void initOIDs();
|
|
|
|
/* reads a list of OIDs/SNs from a file and turns them into a QValueList
|
|
* of integers, representing the NIDs. Usually to be used by NewX509 for
|
|
* the list of ExtendedKeyUsage and Distinguished Name
|
|
*/
|
|
|
|
NIDlist readNIDlist(QString fname);
|
|
#endif
|