]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
vici: Add DBG4 messages that print loaded shared keys and PINs
authorNoel Kuntze <noel.kuntze@thermi.consulting>
Fri, 27 Aug 2021 17:05:03 +0000 (19:05 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Sep 2021 08:42:41 +0000 (10:42 +0200)
Closes strongswan/strongswan#217

src/libcharon/plugins/vici/vici_cred.c

index 02a3db7f132ebb44694c911d5402ca7fc9f70efe..d4186b1f68e7588ebff37aa5a188c4f3c29a35c9 100644 (file)
@@ -375,6 +375,7 @@ CALLBACK(load_token, vici_message_t*,
        }
        if (shared && unique)
        {       /* use the handle as owner, but the key identifier as unique ID */
+               DBG4(DBG_CFG, "loaded shared PIN for '%s': %s", hex, pin);
                owner = identification_create_from_encoding(ID_KEY_ID, handle);
                this->pins->add_shared_unique(this->pins, unique, shared,
                                                                        linked_list_create_with_items(owner, NULL));
@@ -482,7 +483,7 @@ CALLBACK(load_shared, vici_message_t*,
                DBG1(DBG_CFG, "loaded %N shared key for: %s",
                         shared_key_type_names, type, buf);
        }
-
+       DBG4(DBG_CFG, "key: %#B", &data);
        this->creds->add_shared_unique(this->creds, unique,
                                                shared_key_create(type, chunk_clone(data)), owners);