xca/lib/oid.h
Christian Hohnstaedt a8f54c82eb Refactor OID loading
The OID resolver now finds oids independent of the capitalization
2018-07-03 18:49:18 +02:00

31 lines
662 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;
extern QMap<QString,int> oid_lower_map;
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