aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gnsrecord_lib.h')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h36
1 files changed, 22 insertions, 14 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index 38346ada3..693cc6cdb 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -2,20 +2,18 @@
2 This file is part of GNUnet 2 This file is part of GNUnet
3 Copyright (C) 2012, 2013 GNUnet e.V. 3 Copyright (C) 2012, 2013 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software: you can redistribute it and/or modify it
6 it under the terms of the GNU General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation; either version 3, or (at your 7 by the Free Software Foundation, either version 3 of the License,
8 option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
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 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 General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with GNUnet; see the file COPYING. If not, write to the 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/ 17*/
20 18
21/** 19/**
@@ -134,6 +132,16 @@ extern "C"
134#define GNUNET_GNSRECORD_TYPE_ABE_MASTER 65551 132#define GNUNET_GNSRECORD_TYPE_ABE_MASTER 65551
135 133
136/** 134/**
135 * Record type for reclaim OIDC clients
136 */
137#define GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_CLIENT 65552
138
139/**
140 * Record type for reclaim OIDC redirect URIs
141 */
142#define GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT 65553
143
144/**
137 * Flags that can be set for a record. 145 * Flags that can be set for a record.
138 */ 146 */
139enum GNUNET_GNSRECORD_Flags 147enum GNUNET_GNSRECORD_Flags
@@ -411,9 +419,9 @@ GNUNET_GNSRECORD_number_to_typename (uint32_t type);
411 * 419 *
412 * @param rd_count number of records in the @a rd array 420 * @param rd_count number of records in the @a rd array
413 * @param rd array of #GNUNET_GNSRECORD_Data with @a rd_count elements 421 * @param rd array of #GNUNET_GNSRECORD_Data with @a rd_count elements
414 * @return the required size to serialize 422 * @return the required size to serialize, -1 on error
415 */ 423 */
416size_t 424ssize_t
417GNUNET_GNSRECORD_records_get_size (unsigned int rd_count, 425GNUNET_GNSRECORD_records_get_size (unsigned int rd_count,
418 const struct GNUNET_GNSRECORD_Data *rd); 426 const struct GNUNET_GNSRECORD_Data *rd);
419 427
@@ -501,10 +509,10 @@ GNUNET_GNSRECORD_pkey_to_zkey (const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey);
501 509
502 510
503/** 511/**
504 * Convert an absolute domain name in the ".zkey" pTLD to the 512 * Convert an absolute domain name to the
505 * respective public key. 513 * respective public key.
506 * 514 *
507 * @param zkey string "X.zkey" where X is the public 515 * @param zkey string "X" where X is the public
508 * key in an encoding suitable for DNS labels. 516 * key in an encoding suitable for DNS labels.
509 * @param pkey set to a public key on the eliptic curve 517 * @param pkey set to a public key on the eliptic curve
510 * @return #GNUNET_SYSERR if @a zkey has the wrong syntax 518 * @return #GNUNET_SYSERR if @a zkey has the wrong syntax