diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-26 14:47:29 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-26 14:47:29 +0200 |
commit | dba51d34726695de64bca656399ed8f82d225f53 (patch) | |
tree | ad64981fb7189fe0c12b3e6c7f7f819bfe4d700a /src/reclaim/oidc_helper.h | |
parent | b6d8d75ac3700abee64adb452b7e3652b75933c0 (diff) | |
download | gnunet-dba51d34726695de64bca656399ed8f82d225f53.tar.gz gnunet-dba51d34726695de64bca656399ed8f82d225f53.zip |
RECLAIM/REST: simplify auth code; include attrs
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 d718b7a78..3c57dc235 100644 --- a/src/reclaim/oidc_helper.h +++ b/src/reclaim/oidc_helper.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -62,12 +62,14 @@ OIDC_id_token_new (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, | |||
62 | * | 62 | * |
63 | * @param issuer the issuer of the ticket, used to sign the ticket and nonce | 63 | * @param issuer the issuer of the ticket, used to sign the ticket and nonce |
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 nonce the nonce to include in the code | 66 | * @param nonce the nonce to include in the code |
66 | * @return a new authorization code (caller must free) | 67 | * @return a new authorization code (caller must free) |
67 | */ | 68 | */ |
68 | char* | 69 | char* |
69 | OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | 70 | OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, |
70 | const struct GNUNET_RECLAIM_Ticket *ticket, | 71 | const struct GNUNET_RECLAIM_Ticket *ticket, |
72 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | ||
71 | const char* nonce); | 73 | const char* nonce); |
72 | 74 | ||
73 | /** | 75 | /** |
@@ -78,13 +80,15 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | |||
78 | * @param audience the expected audience of the code | 80 | * @param audience the expected audience of the code |
79 | * @param code the string representation of the code | 81 | * @param code the string representation of the code |
80 | * @param ticket where to store the ticket | 82 | * @param ticket where to store the ticket |
83 | * @param attrs the attributes found in the code | ||
81 | * @param nonce where to store the nonce | 84 | * @param nonce where to store the nonce |
82 | * @return GNUNET_OK if successful, else GNUNET_SYSERR | 85 | * @return GNUNET_OK if successful, else GNUNET_SYSERR |
83 | */ | 86 | */ |
84 | int | 87 | int |
85 | OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience, | 88 | OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience, |
86 | const char* code, | 89 | const char* code, |
87 | struct GNUNET_RECLAIM_Ticket **ticket, | 90 | struct GNUNET_RECLAIM_Ticket *ticket, |
91 | struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList **attrs, | ||
88 | char **nonce); | 92 | char **nonce); |
89 | 93 | ||
90 | /** | 94 | /** |