aboutsummaryrefslogtreecommitdiff
path: root/src/credential/test_credential_own.sh
diff options
context:
space:
mode:
authorAndreas Ebner <pansy007@googlemail.com>2019-07-09 17:53:33 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-07 12:15:06 +0200
commit5091edcec16455febee99afec20e0ffe6cc59c21 (patch)
treec7d517e26ca7d3d4f863b4154361293bc79d733e /src/credential/test_credential_own.sh
parentfc58d9d4241ed2dcd4b492b4f922ba959449a697 (diff)
downloadgnunet-5091edcec16455febee99afec20e0ffe6cc59c21.tar.gz
gnunet-5091edcec16455febee99afec20e0ffe6cc59c21.zip
Cleanup, additional input checks, renaming, simplification:
- introducing own GNUNET_SIGNATURE_PURPOSE_DELEGATE - renaming of cred/crd in delegation_misc.c - renamed extension cmd para to import - changed subject key/attr parsing from memcpy/malloc to strtok - only allow to create delegates to expire absolute not relative (prevent reusing created delegation signatures) - check subject key and reuse expiration of import/signed delegation - replaced strdup() part of delegation_misc.c and credential_serialization.c with pointers - uncommented return after detection of unverifyable signatures
Diffstat (limited to 'src/credential/test_credential_own.sh')
-rwxr-xr-xsrc/credential/test_credential_own.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/credential/test_credential_own.sh b/src/credential/test_credential_own.sh
index d10d1b2ea..b53825d1b 100755
--- a/src/credential/test_credential_own.sh
+++ b/src/credential/test_credential_own.sh
@@ -49,17 +49,17 @@ gnunet-credential --createIssuerSide --ego=epub --attribute="issside" --subject=
49gnunet-namestore -D -z epub 49gnunet-namestore -D -z epub
50 50
51# Own subject side storage: 51# Own subject side storage:
52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY" --ttl=5m` 52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY" --ttl="2019-12-12 10:00:00"`
53gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" 53gnunet-credential --createSubjectSide --ego=eorg --import "$SIGNED"
54 54
55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno" --ttl=5m` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno" --ttl="2019-12-12 10:00:00"`
56gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" 56gnunet-credential --createSubjectSide --ego=eorg --import "$SIGNED"
57 57
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno.pqr" --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" 59gnunet-credential --createSubjectSide --ego=eorg --import "$SIGNED"
60 60
61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd.stu" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m` 61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd.stu" --subject="$EORG_KEY efghijklmno.pqr" --ttl="2019-12-12 10:00:00"`
62gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" 62gnunet-credential --createSubjectSide --ego=eorg --import "$SIGNED"
63 63
64gnunet-namestore -D -z eorg 64gnunet-namestore -D -z eorg
65 65