diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-25 23:20:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-25 23:20:25 +0100 |
commit | 91ceba1e1f62b624317ba19d18539075b14540db (patch) | |
tree | 111249072901c6d0e02d3a6d09b13b5e42fb6a7d /src/gns | |
parent | b42e231bc946e96aa1c14628c11d0e109e88682a (diff) | |
download | gnunet-91ceba1e1f62b624317ba19d18539075b14540db.tar.gz gnunet-91ceba1e1f62b624317ba19d18539075b14540db.zip |
first preparations for GNS mapping arbitrary TLDs
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns.h b/src/gns/gnunet-service-gns.h new file mode 100644 index 000000000..3662c945d --- /dev/null +++ b/src/gns/gnunet-service-gns.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2018 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published | ||
7 | by the Free Software Foundation; either version 3, or (at your | ||
8 | option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with GNUnet; see the file COPYING. If not, write to the | ||
17 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | Boston, MA 02110-1301, USA. | ||
19 | */ | ||
20 | /** | ||
21 | * @file gns/gnunet-service-gns.h | ||
22 | * @brief GNU Name System (main service) | ||
23 | * @author Martin Schanzenbach | ||
24 | * @author Christian Grothoff | ||
25 | */ | ||
26 | |||
27 | #ifndef GNUNET_SERVICE_GNS_H | ||
28 | #define GNUNET_SERVICE_GNS_H | ||
29 | |||
30 | /** | ||
31 | * Find GNS zone belonging to TLD @a tld. | ||
32 | * | ||
33 | * @param tld_str top-level domain to look up | ||
34 | * @param[out] pkey public key to set | ||
35 | * @return #GNUNET_YES if @a tld was found #GNUNET_NO if not | ||
36 | */ | ||
37 | int | ||
38 | GNS_find_tld (const char *tld_str, | ||
39 | struct GNUNET_CRYPTO_EddsaPublicKey *pkey); | ||
40 | |||
41 | #endif | ||