[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix wrong record type
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix wrong record type |
Date: |
Mon, 23 Jul 2018 22:58:23 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 4336c9fdd fix wrong record type
4336c9fdd is described below
commit 4336c9fddab44104eef6a480f354a92b6befa255
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Jul 23 22:58:20 2018 +0200
fix wrong record type
---
src/reclaim/plugin_gnsrecord_reclaim.c | 8 ++++----
src/reclaim/plugin_rest_openid_connect.c | 6 ++++--
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/reclaim/plugin_gnsrecord_reclaim.c
b/src/reclaim/plugin_gnsrecord_reclaim.c
index 181a4bbc2..ecd1d6e77 100644
--- a/src/reclaim/plugin_gnsrecord_reclaim.c
+++ b/src/reclaim/plugin_gnsrecord_reclaim.c
@@ -54,11 +54,11 @@ value_to_string (void *cls,
case GNUNET_GNSRECORD_TYPE_ID_ATTR:
return GNUNET_STRINGS_data_to_string_alloc (data, data_size);
case GNUNET_GNSRECORD_TYPE_ID_TOKEN: //DEPRECATED
+ case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT:
+ case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT:
return GNUNET_strndup (data, data_size);
case GNUNET_GNSRECORD_TYPE_ABE_KEY:
case GNUNET_GNSRECORD_TYPE_ABE_MASTER:
- case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT:
- case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT:
return GNUNET_STRINGS_data_to_string_alloc (data, data_size);
case GNUNET_GNSRECORD_TYPE_ID_TOKEN_METADATA: //DEPRECATED
ecdhe_privkey = data;
@@ -115,13 +115,13 @@ string_to_value (void *cls,
*data,
*data_size);
case GNUNET_GNSRECORD_TYPE_ID_TOKEN:
+ case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT:
+ case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT:
*data = GNUNET_strdup (s);
*data_size = strlen (s);
return GNUNET_OK;
case GNUNET_GNSRECORD_TYPE_ABE_KEY:
case GNUNET_GNSRECORD_TYPE_ABE_MASTER:
- case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT:
- case GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT:
return GNUNET_STRINGS_string_to_data (s,
strlen (s),
*data,
diff --git a/src/reclaim/plugin_rest_openid_connect.c
b/src/reclaim/plugin_rest_openid_connect.c
index 99459427c..24673c692 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -895,10 +895,12 @@ lookup_redirect_uri_result (void *cls,
}
for (int i = 0; i < rd_count; i++)
{
- if (0 != strcmp (rd[0].data,
+ if (GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT != rd[i].record_type)
+ continue;
+ if (0 != strcmp (rd[i].data,
handle->oidc->redirect_uri))
continue;
- tmp = GNUNET_strdup (rd[0].data);
+ tmp = GNUNET_strdup (rd[i].data);
pos = strrchr (tmp,
(unsigned char) '.');
*pos = '\0';
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix wrong record type,
gnunet <=