diff options
Diffstat (limited to 'src/reclaim/oidc_helper.h')
-rw-r--r-- | src/reclaim/oidc_helper.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/reclaim/oidc_helper.h b/src/reclaim/oidc_helper.h index 6c10a4ab0..10e43ea27 100644 --- a/src/reclaim/oidc_helper.h +++ b/src/reclaim/oidc_helper.h | |||
@@ -64,13 +64,15 @@ OIDC_id_token_new (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, | |||
64 | * @param ticket the ticket to include in the code | 64 | * @param ticket the ticket to include in the code |
65 | * @param attrs list of attributes to share | 65 | * @param attrs list of attributes to share |
66 | * @param nonce the nonce to include in the code | 66 | * @param nonce the nonce to include in the code |
67 | * @param code_challenge PKCE code challenge | ||
67 | * @return a new authorization code (caller must free) | 68 | * @return a new authorization code (caller must free) |
68 | */ | 69 | */ |
69 | char* | 70 | char* |
70 | OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | 71 | OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, |
71 | const struct GNUNET_RECLAIM_Ticket *ticket, | 72 | const struct GNUNET_RECLAIM_Ticket *ticket, |
72 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | 73 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, |
73 | const char* nonce); | 74 | const char *nonce, |
75 | const char *code_challenge); | ||
74 | 76 | ||
75 | /** | 77 | /** |
76 | * Parse reclaim ticket and nonce from | 78 | * Parse reclaim ticket and nonce from |
@@ -79,6 +81,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | |||
79 | * | 81 | * |
80 | * @param ecdsa_priv the audience of the ticket | 82 | * @param ecdsa_priv the audience of the ticket |
81 | * @param code the string representation of the code | 83 | * @param code the string representation of the code |
84 | * @param code_verfier PKCE code verifier | ||
82 | * @param ticket where to store the ticket | 85 | * @param ticket where to store the ticket |
83 | * @param attrs the attributes found in the code | 86 | * @param attrs the attributes found in the code |
84 | * @param nonce where to store the nonce | 87 | * @param nonce where to store the nonce |
@@ -86,7 +89,8 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | |||
86 | */ | 89 | */ |
87 | int | 90 | int |
88 | OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, | 91 | OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, |
89 | const char* code, | 92 | const char *code, |
93 | const char *code_verifier, | ||
90 | struct GNUNET_RECLAIM_Ticket *ticket, | 94 | struct GNUNET_RECLAIM_Ticket *ticket, |
91 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList **attrs, | 95 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList **attrs, |
92 | char **nonce); | 96 | char **nonce); |