diff options
Diffstat (limited to 'src/reclaim/oidc_helper.h')
-rw-r--r-- | src/reclaim/oidc_helper.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/reclaim/oidc_helper.h b/src/reclaim/oidc_helper.h index 46bd804e7..fa3d7f2d9 100644 --- a/src/reclaim/oidc_helper.h +++ b/src/reclaim/oidc_helper.h | |||
@@ -49,12 +49,12 @@ | |||
49 | * @return a new base64-encoded JWT string. | 49 | * @return a new base64-encoded JWT string. |
50 | */ | 50 | */ |
51 | char* | 51 | char* |
52 | OIDC_id_token_new(const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, | 52 | OIDC_id_token_new (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, |
53 | const struct GNUNET_CRYPTO_EcdsaPublicKey *sub_key, | 53 | const struct GNUNET_CRYPTO_EcdsaPublicKey *sub_key, |
54 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | 54 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, |
55 | const struct GNUNET_TIME_Relative *expiration_time, | 55 | const struct GNUNET_TIME_Relative *expiration_time, |
56 | const char *nonce, | 56 | const char *nonce, |
57 | const char *secret_key); | 57 | const char *secret_key); |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Builds an OIDC authorization code including | 60 | * Builds an OIDC authorization code including |
@@ -68,11 +68,11 @@ OIDC_id_token_new(const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, | |||
68 | * @return a new authorization code (caller must free) | 68 | * @return a new authorization code (caller must free) |
69 | */ | 69 | */ |
70 | char* | 70 | char* |
71 | OIDC_build_authz_code(const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | 71 | OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, |
72 | const struct GNUNET_RECLAIM_Ticket *ticket, | 72 | const struct GNUNET_RECLAIM_Ticket *ticket, |
73 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | 73 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, |
74 | const char *nonce, | 74 | const char *nonce, |
75 | const char *code_challenge); | 75 | const char *code_challenge); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Parse reclaim ticket and nonce from | 78 | * Parse reclaim ticket and nonce from |
@@ -88,12 +88,12 @@ OIDC_build_authz_code(const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | |||
88 | * @return GNUNET_OK if successful, else GNUNET_SYSERR | 88 | * @return GNUNET_OK if successful, else GNUNET_SYSERR |
89 | */ | 89 | */ |
90 | int | 90 | int |
91 | OIDC_parse_authz_code(const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, | 91 | OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, |
92 | const char *code, | 92 | const char *code, |
93 | const char *code_verifier, | 93 | const char *code_verifier, |
94 | struct GNUNET_RECLAIM_Ticket *ticket, | 94 | struct GNUNET_RECLAIM_Ticket *ticket, |
95 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList **attrs, | 95 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList **attrs, |
96 | char **nonce); | 96 | char **nonce); |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * Build a token response for a token request | 99 | * Build a token response for a token request |
@@ -105,15 +105,15 @@ OIDC_parse_authz_code(const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, | |||
105 | * @param token_response where to store the response | 105 | * @param token_response where to store the response |
106 | */ | 106 | */ |
107 | void | 107 | void |
108 | OIDC_build_token_response(const char *access_token, | 108 | OIDC_build_token_response (const char *access_token, |
109 | const char *id_token, | 109 | const char *id_token, |
110 | const struct GNUNET_TIME_Relative *expiration_time, | 110 | const struct GNUNET_TIME_Relative *expiration_time, |
111 | char **token_response); | 111 | char **token_response); |
112 | /** | 112 | /** |
113 | * Generate a new access token | 113 | * Generate a new access token |
114 | */ | 114 | */ |
115 | char* | 115 | char* |
116 | OIDC_access_token_new(); | 116 | OIDC_access_token_new (); |
117 | 117 | ||
118 | 118 | ||
119 | #endif | 119 | #endif |