Skip to content

Commit

Permalink
vici: Implement prompting for secrets over VICI using callback_cred
Browse files Browse the repository at this point in the history
  • Loading branch information
Thermi committed Feb 22, 2021
1 parent d53c539 commit f56441e
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libcharon/plugins/vici/vici_plugin.c
Expand Up @@ -47,6 +47,7 @@
#include "vici_attribute.h"
#include "vici_authority.h"
#include "vici_logger.h"
#include "vici_prompt.h"

#include <library.h>
#include <daemon.h>
Expand Down Expand Up @@ -102,6 +103,11 @@ struct private_vici_plugin_t {
* Generic debug logger
*/
vici_logger_t *logger;

/**
* User prompt
*/
vici_prompt_t *prompt;
};

METHOD(plugin_t, get_name, char*,
Expand Down Expand Up @@ -136,6 +142,8 @@ static bool register_vici(private_vici_plugin_t *this,
this->attrs = vici_attribute_create(this->dispatcher);
this->logger = vici_logger_create(this->dispatcher);

this->prompt = vici_prompt_create(this->dispatcher);

charon->backends->add_backend(charon->backends,
&this->config->backend);
charon->attributes->add_provider(charon->attributes,
Expand Down

0 comments on commit f56441e

Please sign in to comment.