From 3a7d1d0e6eee4f40378635b33fd239c8ead195ff Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Feb 26 2015 21:11:26 +0000 Subject: Have "getcert list" print the certificate profile --- diff --git a/src/getcert.c b/src/getcert.c index 31f9451..053fa4a 100644 --- a/src/getcert.c +++ b/src/getcert.c @@ -3153,6 +3153,12 @@ list(const char *argv0, int argc, char **argv) cm_oid_to_name(NULL, as4[j]), as4[j + 1] ? "" : "\n"); } + s1 = query_prop_s(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, + CM_DBUS_PROP_CA_PROFILE, verbose, + globals.tctx); + if ((s1 != NULL) && (strlen(s1) > 0)) { + printf(_("\tcertificate template/profile: %s\n"), s1); + } as = query_prop_as(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, CM_DBUS_PROP_ROOT_CERT_FILES, verbose, globals.tctx); diff --git a/src/tdbush.c b/src/tdbush.c index 5525691..d08d6e3 100644 --- a/src/tdbush.c +++ b/src/tdbush.c @@ -6681,7 +6681,7 @@ cm_tdbush_iface_request(void) cm_tdbush_property_string, cm_tdbush_property_readwrite, cm_tdbush_property_char_p, - offsetof(struct cm_store_entry, cm_template_profile), + offsetof(struct cm_store_entry, cm_cert_profile), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), make_interface_item(cm_tdbush_interface_property,