summaryrefslogtreecommitdiffstats
path: root/eurephiadm
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-03-27 22:43:20 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-03-27 22:43:20 +0100
commit4bf03e8daade85c734f202f72b22e855ba05eae0 (patch)
tree0fae368f8351c9d0ced3e4018ba38295c0e6c0bb /eurephiadm
parentdf6a96df8422f7825ef247aa7533d08ee8f71125 (diff)
downloadeurephia-4bf03e8daade85c734f202f72b22e855ba05eae0.tar.gz
eurephia-4bf03e8daade85c734f202f72b22e855ba05eae0.tar.xz
eurephia-4bf03e8daade85c734f202f72b22e855ba05eae0.zip
BUGFIX: eurephiadm certs delete help and delete failure
When doing certs --delete --help, wrong help text was shown. When trying to delete certificates with common name or organisation as search fields, no certificates was found. This is another fix after the commit 3c35318429e33c98c2d7fac8943dfc6ff40359c7 which changed some of the XML tags for the certificate table.
Diffstat (limited to 'eurephiadm')
-rw-r--r--eurephiadm/commands/certificates.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eurephiadm/commands/certificates.c b/eurephiadm/commands/certificates.c
index 7a8c747..ce1b710 100644
--- a/eurephiadm/commands/certificates.c
+++ b/eurephiadm/commands/certificates.c
@@ -432,7 +432,7 @@ int delete_cert(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, in
email = optargs[0];
break;
case 'h':
- display_certs_help('A');
+ display_certs_help('D');
break;
default:
return 1;
@@ -459,10 +459,10 @@ int delete_cert(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, in
xmlNewChild(search_n, NULL, (xmlChar *) "digest", (xmlChar *) digest);
}
if( cname != NULL ) {
- xmlNewChild(search_n, NULL, (xmlChar *) "common_name", (xmlChar *) cname);
+ xmlNewChild(search_n, NULL, (xmlChar *) "cname", (xmlChar *) cname);
}
if( org!= NULL ) {
- xmlNewChild(search_n, NULL, (xmlChar *) "organisation", (xmlChar *) org);
+ xmlNewChild(search_n, NULL, (xmlChar *) "org", (xmlChar *) org);
}
if( email != NULL ) {
xmlNewChild(search_n, NULL, (xmlChar *) "email", (xmlChar *) email);