[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sync] branch master updated: fetch apikey from config
From: |
gnunet |
Subject: |
[taler-sync] branch master updated: fetch apikey from config |
Date: |
Mon, 14 Jun 2021 15:29:02 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository sync.
The following commit(s) were added to refs/heads/master by this push:
new 761e91b fetch apikey from config
761e91b is described below
commit 761e91ba9f43aee658ccb970966a2cc4b4ad5b35
Author: ms <ms@taler.net>
AuthorDate: Mon Jun 14 15:28:49 2021 +0200
fetch apikey from config
---
src/sync/sync-httpd.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c
index 4360f79..329bc96 100644
--- a/src/sync/sync-httpd.c
+++ b/src/sync/sync-httpd.c
@@ -608,7 +608,13 @@ run (void *cls,
certfile,
keyfile,
keypass);
- if (NULL != apikey)
+
+ // Case where APIKEY is needed.
+ if (GNUNET_OK ==
+ GNUNET_CONFIGURATION_get_value_string (config,
+ "sync",
+ "APIKEY",
+ &apikey))
{
char *auth_header;
@@ -696,11 +702,6 @@ main (int argc,
"KEYFILEPASSPHRASE",
"passphrase needed to decrypt the TLS client
private key file",
&keypass),
- GNUNET_GETOPT_option_string ('K',
- "apikey",
- "APIKEY",
- "API key to use in the HTTP request",
- &apikey),
GNUNET_GETOPT_option_string ('t',
"type",
"CERTTYPE",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-sync] branch master updated: fetch apikey from config,
gnunet <=