mirror of
https://github.com/chris2511/xca.git
synced 2026-09-13 18:46:25 +05:00
21 lines
478 B
C++
21 lines
478 B
C++
/* here we have the possibility to add out own OIDS */
|
|
|
|
#include <openssl/objects.h>
|
|
|
|
char *our_oids[] = {
|
|
"1.3.6.1.4.1.311.20.2", "dom", "Domain Controller",
|
|
"1.3.6.1.4.1.311.21.1", "MsCaV", "Microsoft CA Version",
|
|
#if OPENSSL_VERSION_NUMBER < 0x00907000L
|
|
"1.3.6.1.4.1.311.20.2.3", "msUPN", "Microsoft Universal Principal Name",
|
|
#endif
|
|
NULL };
|
|
|
|
void initOIDs() {
|
|
int i=0;
|
|
while (our_oids[i] != NULL) {
|
|
OBJ_create(our_oids[i], our_oids[i+1], our_oids[i+2]);
|
|
i+=3;
|
|
}
|
|
}
|
|
|