commit 03360197bbb34602309fed8b3633a9fc4d8d1c63
parent 43c06336530a9c6dbb84d8a8cb603bdd247a05ec
Author: rexxnor <rexxnor+gnunet@brief.li>
Date: Wed, 20 Feb 2019 17:33:00 +0100
changed argument -ns to -n, removed gnunet.py
Diffstat:
3 files changed, 6 insertions(+), 67 deletions(-)
diff --git a/README b/README
@@ -40,8 +40,8 @@ Ascension
Usage:
ascension <domain> [-d] [-p]
ascension <domain> <port> [-d] [-p]
- ascension <domain> -ns <transferns> [-d] [-p]
- ascension <domain> -ns <transferns> <port> [-d] [-p]
+ ascension <domain> -n <transferns> [-d] [-p]
+ ascension <domain> -n <transferns> <port> [-d] [-p]
ascension -p | --public
ascension -h | --help
ascension -v | --version
@@ -59,7 +59,7 @@ Options:
Example use:
```
# Transfers the sy TLD from ns1.tld.sy.
-ascension sy -ns ns1.tld.sy.
+ascension sy -n ns1.tld.sy.
# Transfers the nu TLD from zonedata.iis.se with debug options enabled
-ascension nu -ns zonedata.iis.se. -d
+ascension nu -n zonedata.iis.se. -d
```
diff --git a/ascension/ascension.py b/ascension/ascension.py
@@ -22,8 +22,8 @@
Usage:
ascension <domain> [-d] [-p]
ascension <domain> <port> [-d] [-p]
- ascension <domain> -ns <transferns> [-d] [-p]
- ascension <domain> -ns <transferns> <port> [-d] [-p]
+ ascension <domain> -n <transferns> [-d] [-p]
+ ascension <domain> -n <transferns> <port> [-d] [-p]
ascension -p | --public
ascension -h | --help
ascension -v | --version
diff --git a/ascension/gnunet.py b/ascension/gnunet.py
@@ -1,61 +0,0 @@
-from ctypes import c_char_p
-from ctypes import c_size_t
-from ctypes import c_uint32
-from ctypes import c_uint64
-from ctypes import c_void_p
-from ctypes import CDLL
-from ctypes import Structure
-from enum import Enum
-from dataclasses import dataclass
-
-class GNUnetGNSRecordFlags(Enum):
- """
- Flags that can be set for a record.
- """
- GNUNET_GNSRECORD_RF_NONE = 0
- GNUNET_GNSRECORD_RF_PRIVATE = 2
- GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION = 8
- GNUNET_GNSRECORD_RF_SHADOW_RECORD = 16
-
-class GNUnetGNSRecordData():
- """
- Representation of a GNS Record in python
- """
- _fields_ = [("data", c_void_p),
- ("expiration_time", c_uint64),
- ("data_size", c_size_t),
- ("record_type", c_uint32),
- ("flags", GNUnetGNSRecordFlags)]
-
-class GNUnetEcdsaPrivateKey(Structure):
- """
- Representation of GNUNET_CRYPTO_EcdsaPrivateKey
- """
- _fields_ = [("d", c_char_p)]
-
-class GNUnetConfigurationHandle(Structure):
- """
- Representation of GNUNET_CONFIGURATION_HANDLE
- """
- pass
-
-class GNUnetMQHandle(Structure):
- """
- Representation of GNUNET_CONFIGURATION_HANDLE
- """
- pass
-
-class GNUnetNamestoreHandle():
- """
- Representation of GNUNET_NAMESTORE_Handle
- """
- _fields_ = [("cfg": GNUnetConfigurationHandle),
- ("mq": GNUnetMQHandle),
- ("op_head": GNUnetNamestoreQueueEntry),
- ("op_tail": GNUnetNamestoreQueueEntry),
- ("z_head": GNUnetNamestoreZoneIterator),
- ("z_tail": GNUnetNamestoreZoneIterator),
- ("reconnect_task": GNUnetSchedulerTask),
- ("reconnect_delay": GNUnetTimeRelative),
- ("reconnet": int),
- ("last_op_id_used": c_uint32_t)]