Comments (4)
I tried v0.8 and make check fails
Hmm, what environment? Are you running from git or the tarball? tomcrypt or nettle?
make check
passes for me on Ubuntu 12.04, Ubuntu 14.04, Fedora 20, and OSX 10.9.5. All x86_64.
btw. Several tests don't include #!/bin/sh
They are using the new parallel test harness now, so tests/pipe-wrapper.sh is used to run them. They shouldn't be invoked directly from the command line.
Can you paste your test-suite.log file?
error: --token string is garbled: General failure
Is there any chance that this is running an old (pre-0.6) stoken binary, which can't parse v3 tokens?
from stoken.
I compiled with nettle on a Debian system x86_64 (testing).
==================================
stoken 0.8: ./test-suite.log
==================================
# TOTAL: 8
# PASS: 7
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/export-v3-sdtid
===========================
+ base=./tests/export-v3-sdtid.pipe
+ [[ ./tests/export-v3-sdtid.pipe != *.pipe ]]
+ base=./tests/export-v3-sdtid
+ TESTDIR=./tests
+ STOKEN=./stoken
+ test -z ''
+ tok0=--token=258491750817210752367175001073261277346642631755724762324173166222072472716737543
+ out=
+ read x
++ eval '$STOKEN' export --v3 --file '$TESTDIR/pinmode-2.sdtid'
+++ ./stoken export --v3 --file ./tests/pinmode-2.sdtid
+ out='http://127.0.0.1/securid/ctf?ctfData=AwAA8rGOYQO%2BGoghpynX8gLyXHTg4u68Fc8v94OZJFLdIEfysY5hA74aiCGnKdfyAvJcdODi7rwVzy%2F3g5kkUt0gR6BHpAH0UjAZUDItWFKSn9Xsk%2B9E%2Fx04OJIL70sHxeFkQvi9Mu18bM77wMdROkBwjOXY1CJFlyMmhrlnRhgQ7GkO0p15s0wFZzHHeAD8Dq8iwkiIYA2QtpTUvZyGhGONMI5jDq6zlUacBLl8TLi41ScXhVLk3UKLbU216cWfS0Oog%2FEgvMfOAt8hjZanOfJMPErsjV568Ifke%2FROP5fmH6JZESSb8a8IWSDPXxNQz7UWsUt7dzmZS7DI0dVafo4%2F8IYH1AB4KclBDygArtU5dEYJbsvE8ZGHGeuosdFCbGWQ'
+ read x
++ eval '$STOKEN' export --token '$out' --sdtid --template '$TESTDIR/fixed-secret.xml'
+++ ./stoken export --token 'http://127.0.0.1/securid/ctf?ctfData=AwAA8rGOYQO%2BGoghpynX8gLyXHTg4u68Fc8v94OZJFLdIEfysY5hA74aiCGnKdfyAvJcdODi7rwVzy%2F3g5kkUt0gR6BHpAH0UjAZUDItWFKSn9Xsk%2B9E%2Fx04OJIL70sHxeFkQvi9Mu18bM77wMdROkBwjOXY1CJFlyMmhrlnRhgQ7GkO0p15s0wFZzHHeAD8Dq8iwkiIYA2QtpTUvZyGhGONMI5jDq6zlUacBLl8TLi41ScXhVLk3UKLbU216cWfS0Oog%2FEgvMfOAt8hjZanOfJMPErsjV568Ifke%2FROP5fmH6JZESSb8a8IWSDPXxNQz7UWsUt7dzmZS7DI0dVafo4%2F8IYH1AB4KclBDygArtU5dEYJbsvE8ZGHGeuosdFCbGWQ' --sdtid --template ./tests/fixed-secret.xml
+ out='<?xml version="1.0"?>
<TKNBatch>
<TKNHeader>
<Version>0</Version>
<Origin>N/A</Origin>
<Dest>N/A</Dest>
<Name>N/A</Name>
<FirstToken>N/A</FirstToken>
<LastToken>N/A</LastToken>
<NumTokens>0</NumTokens>
<Secret>WTFNzycMvOXcvS7UKDpKWA==</Secret>
<DefBirth>2000/01/01</DefBirth>
<DefDeath>2015/07/10</DefDeath>
<DefDigits>8</DefDigits>
<DefInterval>60</DefInterval>
<DefAlg>1</DefAlg>
<DefMode>0</DefMode>
<DefPrecision>2400</DefPrecision>
<DefSmallWin>630</DefSmallWin>
<DefMediumWin>4320</DefMediumWin>
<DefLargeWin>4320</DefLargeWin>
<DefAddPIN>1</DefAddPIN>
<DefLocalPIN>0</DefLocalPIN>
<DefCopyProtection>1</DefCopyProtection>
<DefPinType>0</DefPinType>
<DefKeypad>1</DefKeypad>
<DefProtLevel>0</DefProtLevel>
<DefRevision>0</DefRevision>
<DefTimeDerivedSeeds>1</DefTimeDerivedSeeds>
<DefAppDerivedSeeds>0</DefAppDerivedSeeds>
<DefFormFactor>20000001</DefFormFactor>
<HeaderMAC>YhB2EWYfAkHtV8/dHSV1Tg==</HeaderMAC>
</TKNHeader>
<TKN>
<SN>127456102283</SN>
<Seed>=g0qt3WAzzPhsrweEtU+vaQ==</Seed>
<UserFirstName> </UserFirstName>
<UserLastName> </UserLastName>
<UserLogin> </UserLogin>
<TokenAttributes>
<DeviceSerialNumber> </DeviceSerialNumber>
<Nickname> </Nickname>
</TokenAttributes>
<TokenMAC>570ZOseHY/cljpXC89XiUw==</TokenMAC>
</TKN>
<TKNTrailer>
<BatchSignature>UatKwCziue21JtATkwp1VJngzG8TRnNgFqOtZ4FrYVOqiyFf6K0F3FmPWEnIKaDkErTo68OM+Y5IOWNTK3hSlyoPp6RQoB1IHR8CvegDYhfh1wAwMlxvtAC0ym32Ui+wl8efhzOqMLC3d5oVemsAsi7i2eLtXww6F3gRbXM+w24=</BatchSignature>
<BatchCertificate>MIICeTCCAWGgAwIBAgIQM0NFNTU4NTMzMDlGODEzMDANBgkqhkiG9w0BAQQFADBBMT8wPQYDVQQDEzZTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMsIEluYy4gUHJpbWFyeSBDQSBSb290IDEwHhcNMDIwNTE3MTkyMTU1WhcNMjIwNTEyMTkyMTU1WjA0MTIwMAYDVQQDEylTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMgQUNFL1NlcnZlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1np1DIf3HOHAK2ahcRzZCJsqIC1QMEqtsdanKSEn5CGtLCdLv9LbLUYo6cQxKSJtwvigpeDgBAb/UYcUNXy/7dY7rA5WpYlsaA9h5C9qzPMBHxVGSIe5k61uUbAwdFhCMfLh776wR//VZ7cuypo5d3cCbvgHGwqw4ZuECbKvONMCAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAq8MMJs1SczwpfcZqn9loM+2RhFmN1IZiXyevz1VvGD9GUrlLalm/Et989zR/dVhciGXmAAxYnV/MoZmshjXozmJgjRmfqqHLS46UJ9nLZ2BuEVcrHnn6f9meIjeMWm+Dvh+8Vi9KJOLozYbDoaUMm+5F7ywKsUuBPRSJ1ykGJG6dOCBZlJGmM3kbZ54lRAK2TYcu2JM21i7BKdeE9xItyabJzEk3QCsX0erY7h3V//okIfKWLh8LieoWbV4+VtrQEoiUwyqdYswwgMOyRiKuGTkk3DhHdoqhG8SqHSxkPto42hEnpOx9j2rqcsOWosvNyfm9nwkqJfhuJClLwOzw5Q==</BatchCertificate>
</TKNTrailer>
</TKNBatch>'
+ read x
+ '[' '' = 1 ']'
++ cat ./tests/export-v3-sdtid.ref
+ ref='<?xml version="1.0"?>
<TKNBatch>
<TKNHeader>
<Version>0</Version>
<Origin>N/A</Origin>
<Dest>N/A</Dest>
<Name>N/A</Name>
<FirstToken>N/A</FirstToken>
<LastToken>N/A</LastToken>
<NumTokens>0</NumTokens>
<Secret>WTFNzycMvOXcvS7UKDpKWA==</Secret>
<DefBirth>2000/01/01</DefBirth>
<DefDeath>2015/07/11</DefDeath>
<DefDigits>8</DefDigits>
<DefInterval>60</DefInterval>
<DefAlg>1</DefAlg>
<DefMode>0</DefMode>
<DefPrecision>2400</DefPrecision>
<DefSmallWin>630</DefSmallWin>
<DefMediumWin>4320</DefMediumWin>
<DefLargeWin>4320</DefLargeWin>
<DefAddPIN>1</DefAddPIN>
<DefLocalPIN>0</DefLocalPIN>
<DefCopyProtection>1</DefCopyProtection>
<DefPinType>0</DefPinType>
<DefKeypad>1</DefKeypad>
<DefProtLevel>0</DefProtLevel>
<DefRevision>0</DefRevision>
<DefTimeDerivedSeeds>1</DefTimeDerivedSeeds>
<DefAppDerivedSeeds>0</DefAppDerivedSeeds>
<DefFormFactor>20000001</DefFormFactor>
<HeaderMAC>TVyZgbO2uGZv4K5tBRQ46A==</HeaderMAC>
</TKNHeader>
<TKN>
<SN>127456102283</SN>
<Seed>=g0qt3WAzzPhsrweEtU+vaQ==</Seed>
<UserFirstName> </UserFirstName>
<UserLastName> </UserLastName>
<UserLogin> </UserLogin>
<TokenAttributes>
<DeviceSerialNumber> </DeviceSerialNumber>
<Nickname> </Nickname>
</TokenAttributes>
<TokenMAC>570ZOseHY/cljpXC89XiUw==</TokenMAC>
</TKN>
<TKNTrailer>
<BatchSignature>2bOXtQP+j4mVWSB3dGmTbYNXIMGjYpJVEHetmAEewONBtUheC+DVXk+frUrTN8N0FX47bZPW4TQJkWUAEYGlnsKhP/98U5IYsxPuVOBZJaUnmISSqSGY7SJNOOyTzB3HcuQ49anoVxx1ZtvQ1zSzA+5m95RVU8lzX+DBZKsOfao=</BatchSignature>
<BatchCertificate>MIICeTCCAWGgAwIBAgIQM0NFNTU4NTMzMDlGODEzMDANBgkqhkiG9w0BAQQFADBBMT8wPQYDVQQDEzZTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMsIEluYy4gUHJpbWFyeSBDQSBSb290IDEwHhcNMDIwNTE3MTkyMTU1WhcNMjIwNTEyMTkyMTU1WjA0MTIwMAYDVQQDEylTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMgQUNFL1NlcnZlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1np1DIf3HOHAK2ahcRzZCJsqIC1QMEqtsdanKSEn5CGtLCdLv9LbLUYo6cQxKSJtwvigpeDgBAb/UYcUNXy/7dY7rA5WpYlsaA9h5C9qzPMBHxVGSIe5k61uUbAwdFhCMfLh776wR//VZ7cuypo5d3cCbvgHGwqw4ZuECbKvONMCAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAq8MMJs1SczwpfcZqn9loM+2RhFmN1IZiXyevz1VvGD9GUrlLalm/Et989zR/dVhciGXmAAxYnV/MoZmshjXozmJgjRmfqqHLS46UJ9nLZ2BuEVcrHnn6f9meIjeMWm+Dvh+8Vi9KJOLozYbDoaUMm+5F7ywKsUuBPRSJ1ykGJG6dOCBZlJGmM3kbZ54lRAK2TYcu2JM21i7BKdeE9xItyabJzEk3QCsX0erY7h3V//okIfKWLh8LieoWbV4+VtrQEoiUwyqdYswwgMOyRiKuGTkk3DhHdoqhG8SqHSxkPto42hEnpOx9j2rqcsOWosvNyfm9nwkqJfhuJClLwOzw5Q==</BatchCertificate>
</TKNTrailer>
</TKNBatch>'
+ '[' '<?xml version="1.0"?>
<TKNBatch>
<TKNHeader>
<Version>0</Version>
<Origin>N/A</Origin>
<Dest>N/A</Dest>
<Name>N/A</Name>
<FirstToken>N/A</FirstToken>
<LastToken>N/A</LastToken>
<NumTokens>0</NumTokens>
<Secret>WTFNzycMvOXcvS7UKDpKWA==</Secret>
<DefBirth>2000/01/01</DefBirth>
<DefDeath>2015/07/10</DefDeath>
<DefDigits>8</DefDigits>
<DefInterval>60</DefInterval>
<DefAlg>1</DefAlg>
<DefMode>0</DefMode>
<DefPrecision>2400</DefPrecision>
<DefSmallWin>630</DefSmallWin>
<DefMediumWin>4320</DefMediumWin>
<DefLargeWin>4320</DefLargeWin>
<DefAddPIN>1</DefAddPIN>
<DefLocalPIN>0</DefLocalPIN>
<DefCopyProtection>1</DefCopyProtection>
<DefPinType>0</DefPinType>
<DefKeypad>1</DefKeypad>
<DefProtLevel>0</DefProtLevel>
<DefRevision>0</DefRevision>
<DefTimeDerivedSeeds>1</DefTimeDerivedSeeds>
<DefAppDerivedSeeds>0</DefAppDerivedSeeds>
<DefFormFactor>20000001</DefFormFactor>
<HeaderMAC>YhB2EWYfAkHtV8/dHSV1Tg==</HeaderMAC>
</TKNHeader>
<TKN>
<SN>127456102283</SN>
<Seed>=g0qt3WAzzPhsrweEtU+vaQ==</Seed>
<UserFirstName> </UserFirstName>
<UserLastName> </UserLastName>
<UserLogin> </UserLogin>
<TokenAttributes>
<DeviceSerialNumber> </DeviceSerialNumber>
<Nickname> </Nickname>
</TokenAttributes>
<TokenMAC>570ZOseHY/cljpXC89XiUw==</TokenMAC>
</TKN>
<TKNTrailer>
<BatchSignature>UatKwCziue21JtATk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KNBatch>
<TKNHeader>
<Version>0</Version>
<Origin>N/A</Origin>
<Dest>N/A</Dest>
<Name>N/A</Name>
<FirstToken>N/A</FirstToken>
<LastToken>N/A</LastToken>
<NumTokens>0</NumTokens>
<Secret>WTFNzycMvOXcvS7UKDpKWA==</Secret>
<DefBirth>2000/01/01</DefBirth>
<DefDeath>2015/07/11</DefDeath>
<DefDigits>8</DefDigits>
<DefInterval>60</DefInterval>
<DefAlg>1</DefAlg>
<DefMode>0</DefMode>
<DefPrecision>2400</DefPrecision>
<DefSmallWin>630</DefSmallWin>
<DefMediumWin>4320</DefMediumWin>
<DefLargeWin>4320</DefLargeWin>
<DefAddPIN>1</DefAddPIN>
<DefLocalPIN>0</DefLocalPIN>
<DefCopyProtection>1</DefCopyProtection>
<DefPinType>0</DefPinType>
<DefKeypad>1</DefKeypad>
<DefProtLevel>0</DefProtLevel>
<DefRevision>0</DefRevision>
<DefTimeDerivedSeeds>1</DefTimeDerivedSeeds>
<DefAppDerivedSeeds>0</DefAppDerivedSeeds>
<DefFormFactor>20000001</DefFormFactor>
<HeaderMAC>TVyZgbO2uGZv4K5tBRQ46A==</HeaderMAC>
</TKNHeader>
<TKN>
<SN>127456102283</SN>
<Seed>=g0qt3WAzzPhsrweEtU+vaQ==</Seed>
<UserFirstName> </UserFirstName>
<UserLastName> </UserLastName>
<UserLogin> </UserLogin>
<TokenAttributes>
<DeviceSerialNumber> </DeviceSerialNumber>
<Nickname> </Nickname>
</TokenAttributes>
<TokenMAC>570ZOseHY/cljpXC89XiUw==</TokenMAC>
</TKN>
<TKNTrailer>
<BatchSignature>2bOXtQP+j4mVWSB3dGmTbYNXIMGjYpJVEHetmAEewONBtUheC+DVXk+frUrTN8N0FX47bZPW4TQJkWUAEYGlnsKhP/98U5IYsxPuVOBZJaUnmISSqSGY7SJNOOyTzB3HcuQ49anoVxx1ZtvQ1zSzA+5m95RVU8lzX+DBZKsOfao=</BatchSignature>
<BatchCertificate>MIICeTCCAWGgAwIBAgIQM0NFNTU4NTMzMDlGODEzMDANBgkqhkiG9w0BAQQFADBBMT8wPQYDVQQDEzZTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMsIEluYy4gUHJpbWFyeSBDQSBSb290IDEwHhcNMDIwNTE3MTkyMTU1WhcNMjIwNTEyMTkyMTU1WjA0MTIwMAYDVQQDEylTZWN1cml0eSBEeW5hbWljcyBUZWNobm9sb2dpZXMgQUNFL1NlcnZlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1np1DIf3HOHAK2ahcRzZCJsqIC1QMEqtsdanKSEn5CGtLCdLv9LbLUYo6cQxKSJtwvigpeDgBAb/UYcUNXy/7dY7rA5WpYlsaA9h5C9qzPMBHxVGSIe5k61uUbAwdFhCMfLh776wR//VZ7cuypo5d3cCbvgHGwqw4ZuECbKvONMCAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAq8MMJs1SczwpfcZqn9loM+2RhFmN1IZiXyevz1VvGD9GUrlLalm/Et989zR/dVhciGXmAAxYnV/MoZmshjXozmJgjRmfqqHLS46UJ9nLZ2BuEVcrHnn6f9meIjeMWm+Dvh+8Vi9KJOLozYbDoaUMm+5F7ywKsUuBPRSJ1ykGJG6dOCBZlJGmM3kbZ54lRAK2TYcu2JM21i7BKdeE9xItyabJzEk3QCsX0erY7h3V//okIfKWLh8LieoWbV4+VtrQEoiUwyqdYswwgMOyRiKuGTkk3DhHdoqhG8SqHSxkPto42hEnpOx9j2rqcsOWosvNyfm9nwkqJfhuJClLwOzw5Q==</BatchCertificate>
</TKNTrailer>
</TKNBatch>' ']'
+ exit 1
from stoken.
btw. The previous output is from stoken git on master.
(I also recompiled with libtomcrypt, and I get exactly the same error)
from stoken.
OK, looks like DefDeath is calculated differently based on the local timezone. TZ=Europe/Athens make check
fails but TZ=America/Los_Angeles make check
passes. I will need to figure out where this is creeping in.
from stoken.
Related Issues (20)
- Ability to copy both current and next tokencode HOT 5
- Can a SID700 hardware token behavior be emulated? HOT 2
- Port to NodeJS HOT 5
- SetPin nor pin in stoken.rc allow alphanumeric pin.
- How can I create a new batch certificate ? HOT 1
- Documentation Update - Next Tokencode CLI HOT 1
- Respect XDG base directories
- iPhone token - Device ID mismatch HOT 3
- RFE: port to openssl crypto
- Arduino Due support HOT 3
- UI issue on MacOS Monterrey
- Add configurable timeout for re-entry of PIN
- Keyboard shortcuts don't close application
- Is this project still in development? HOT 2
- 'mlockall' error HOT 1
- error: --token string is garbled: General failure HOT 1
- How do you remove a stored token? HOT 1
- RFE: please start making github releases HOT 2
- Why do you need stoken-gui-small.desktop
- stoken 0.93 tarball HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stoken.