From: Nikos Mavrogiannopoulos Date: Tue, 20 May 2014 19:53:51 +0000 (+0200) Subject: Added aliases for unit and organization. X-Git-Tag: gnutls_3_3_3~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6cb66efa41a94bb252f54e5f158207e3886817;p=thirdparty%2Fgnutls.git Added aliases for unit and organization. --- diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c index 1a18215b1e..c1066a5c08 100644 --- a/src/certtool-cfg.c +++ b/src/certtool-cfg.c @@ -208,7 +208,14 @@ int template_parse(const char *template) /* Option variables */ READ_MULTI_LINE("unit", cfg.unit); - READ_MULTI_LINE("unit", cfg.organization); + if (cfg.unit == NULL) { + READ_MULTI_LINE("ou", cfg.unit); + } + + READ_MULTI_LINE("organization", cfg.organization); + if (cfg.organization == NULL) { + READ_MULTI_LINE("o", cfg.organization); + } val = optionGetValue(pov, "locality"); if (val != NULL && val->valType == OPARG_TYPE_STRING)