Skip to content

Commit

Permalink
remove cruft and update
Browse files Browse the repository at this point in the history
Signed-off-by: adiforluls <[email protected]>
  • Loading branch information
adiforluls committed Nov 21, 2023
1 parent fcc0ddc commit 580f705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
24 changes: 0 additions & 24 deletions plugins/out_oracle_log_analytics/oci_logan.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,30 +176,6 @@
#include <fluent-bit/flb_hash_table.h>
#include <monkey/mk_core/mk_list.h>

#include "oci_client.h"

struct federation_client {
struct flb_upstream *u;
flb_sds_t region;
flb_sds_t tenancy_id;
struct cert_retriever *leaf_cert_ret;
struct cert_retriever *intermediate_cert_ret;
// session key supplier
flb_sds_t private_key;
flb_sds_t public_key;
flb_sds_t key_id;
flb_sds_t security_token;
time_t expire;
pthread_mutex_t lock;
};

struct cert_retriever {
struct flb_upstream *u;
flb_sds_t cert_pem;
X509 *cert;
flb_sds_t private_key_pem;
};

struct metadata_obj {
flb_sds_t key;
flb_sds_t val;
Expand Down
3 changes: 2 additions & 1 deletion plugins/out_oracle_log_analytics/oci_logan_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ struct flb_oci_logan *flb_oci_logan_conf_create(struct flb_output_instance *ins,
}

if (strcasecmp(ctx->auth_type, USER_PRINCIPAL) == 0) {
if (create_pk_context(ctx->key_file, NULL, ctx) < 0) {
if (create_pk_context(ctx->key_file, NULL,
ctx->ins, &ctx->private_key) < 0) {
flb_plg_error(ctx->ins, "failed to create pk context");
flb_oci_logan_conf_destroy(ctx);
return NULL;
Expand Down

0 comments on commit 580f705

Please sign in to comment.