diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-20 21:53:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-20 21:53:51 +0200 |
commit | df6cb66efa41a94bb252f54e5f158207e3886817 (patch) | |
tree | 2b220db7ff227f2d3f06545c3afff8d611b7dbce /src/certtool-cfg.c | |
parent | fdefcc6bae1301f04f70557289531e06b953aada (diff) | |
download | gnutls-df6cb66efa41a94bb252f54e5f158207e3886817.tar.gz |
Added aliases for unit and organization.
Diffstat (limited to 'src/certtool-cfg.c')
-rw-r--r-- | src/certtool-cfg.c | 9 |
1 files changed, 8 insertions, 1 deletions
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) |