0s autopkgtest [13:40:59]: starting date and time: 2025-03-15 13:40:59+0000
0s autopkgtest [13:40:59]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production'
0s autopkgtest [13:40:59]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.n4wz32qd/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:glibc --apt-upgrade oath-toolkit --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=glibc/2.41-1ubuntu2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-5.secgroup --name adt-plucky-arm64-oath-toolkit-20250315-134058-juju-7f2275-prod-proposed-migration-environment-15-4651a5f2-afc9-47bf-92c3-178515c3134a --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/
222s autopkgtest [13:44:41]: testbed dpkg architecture: arm64
222s autopkgtest [13:44:41]: testbed apt version: 2.9.33
222s autopkgtest [13:44:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup
223s autopkgtest [13:44:42]: testbed release detected to be: None
223s autopkgtest [13:44:42]: updating testbed package index (apt update)
224s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB]
224s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease
224s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease
224s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease
224s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB]
224s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [404 kB]
225s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [101 kB]
225s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [78.2 kB]
225s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 c-n-f Metadata [1976 B]
225s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 c-n-f Metadata [116 B]
225s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [346 kB]
226s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 c-n-f Metadata [15.8 kB]
226s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [4948 B]
226s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 c-n-f Metadata [572 B]
226s Fetched 1094 kB in 2s (537 kB/s)
227s Reading package lists...
228s + lsb_release --codename --short
228s + RELEASE=plucky
228s + cat
228s + [ plucky != trusty ]
228s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade
228s Reading package lists...
228s Building dependency tree...
228s Reading state information...
228s Calculating upgrade...
229s Calculating upgrade...
229s The following packages will be upgraded:
229s python3-jinja2 strace
229s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
229s Need to get 608 kB of archives.
229s After this operation, 11.3 kB of additional disk space will be used.
229s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 strace arm64 6.13+ds-1ubuntu1 [499 kB]
230s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-jinja2 all 3.1.5-2ubuntu1 [109 kB]
230s Fetched 608 kB in 1s (590 kB/s)
231s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 117701 files and directories currently installed.)
231s Preparing to unpack .../strace_6.13+ds-1ubuntu1_arm64.deb ...
231s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ...
231s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ...
231s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ...
231s Setting up python3-jinja2 (3.1.5-2ubuntu1) ...
231s Setting up strace (6.13+ds-1ubuntu1) ...
231s Processing triggers for man-db (2.13.0-1) ...
232s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref
232s + /usr/lib/apt/apt-helper analyze-pattern ?true
232s + uname -r
232s + sed s/\./\\./g
232s + running_kernel_pattern=^linux-.*6\.14\.0-10-generic.*
232s + apt list ?obsolete
232s + tail -n+2
232s + cut -d/ -f1
232s + grep -v ^linux-.*6\.14\.0-10-generic.*
232s + obsolete_pkgs=linux-headers-6.11.0-8-generic
232s linux-headers-6.11.0-8
232s linux-image-6.11.0-8-generic
232s linux-modules-6.11.0-8-generic
232s linux-tools-6.11.0-8-generic
232s linux-tools-6.11.0-8
232s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove linux-headers-6.11.0-8-generic linux-headers-6.11.0-8 linux-image-6.11.0-8-generic linux-modules-6.11.0-8-generic linux-tools-6.11.0-8-generic linux-tools-6.11.0-8
232s Reading package lists...
232s Building dependency tree...
232s Reading state information...
233s Solving dependencies...
233s The following packages will be REMOVED:
233s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64*
233s libunwind8* linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic*
233s linux-image-6.11.0-8-generic* linux-modules-6.11.0-8-generic*
233s linux-tools-6.11.0-8* linux-tools-6.11.0-8-generic*
233s 0 upgraded, 0 newly installed, 11 to remove and 5 not upgraded.
233s After this operation, 267 MB disk space will be freed.
233s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 117701 files and directories currently installed.)
233s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ...
233s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ...
233s Removing libpython3.12t64:arm64 (3.12.9-1) ...
233s Removing libpython3.12-stdlib:arm64 (3.12.9-1) ...
234s Removing libnsl2:arm64 (1.3.0-3build3) ...
234s Removing libpython3.12-minimal:arm64 (3.12.9-1) ...
234s Removing libunwind8:arm64 (1.6.2-3.1) ...
234s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ...
234s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ...
236s Removing linux-image-6.11.0-8-generic (6.11.0-8.8) ...
236s I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.14.0-10-generic
236s I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-10-generic
236s /etc/kernel/postrm.d/initramfs-tools:
236s update-initramfs: Deleting /boot/initrd.img-6.11.0-8-generic
236s /etc/kernel/postrm.d/zz-flash-kernel:
236s flash-kernel: Kernel 6.11.0-8-generic has been removed.
236s flash-kernel: A higher version (6.14.0-10-generic) is still installed, no reflashing required.
236s /etc/kernel/postrm.d/zz-update-grub:
236s Sourcing file `/etc/default/grub'
236s Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
236s Generating grub configuration file ...
236s Found linux image: /boot/vmlinuz-6.14.0-10-generic
236s Found initrd image: /boot/initrd.img-6.14.0-10-generic
237s Warning: os-prober will not be executed to detect other bootable partitions.
237s Systems on them will not be added to the GRUB boot configuration.
237s Check GRUB_DISABLE_OS_PROBER documentation entry.
237s Adding boot menu entry for UEFI Firmware Settings ...
237s done
237s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ...
237s Processing triggers for libc-bin (2.41-1ubuntu1) ...
237s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81650 files and directories currently installed.)
237s Purging configuration files for linux-image-6.11.0-8-generic (6.11.0-8.8) ...
237s Purging configuration files for libpython3.12-minimal:arm64 (3.12.9-1) ...
237s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ...
237s + grep -q trusty /etc/lsb-release
237s + [ ! -d /usr/share/doc/unattended-upgrades ]
237s + [ ! -d /usr/share/doc/lxd ]
237s + [ ! -d /usr/share/doc/lxd-client ]
237s + [ ! -d /usr/share/doc/snapd ]
237s + type iptables
237s + cat
237s + chmod 755 /etc/rc.local
237s + . /etc/rc.local
237s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
237s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP
237s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP
237s + uname -m
237s + [ aarch64 = ppc64le ]
237s + [ -d /run/systemd/system ]
237s + systemd-detect-virt --quiet --vm
237s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/
237s + cat
237s + grep -q lz4 /etc/initramfs-tools/initramfs.conf
237s + echo COMPRESS=lz4
237s autopkgtest [13:44:56]: upgrading testbed (apt dist-upgrade and autopurge)
238s Reading package lists...
238s Building dependency tree...
238s Reading state information...
238s Calculating upgrade...Starting pkgProblemResolver with broken count: 0
238s Starting 2 pkgProblemResolver with broken count: 0
238s Done
239s Entering ResolveByKeep
239s
239s Calculating upgrade...
240s The following packages will be upgraded:
240s libc-bin libc-dev-bin libc6 libc6-dev locales
240s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
240s Need to get 9530 kB of archives.
240s After this operation, 0 B of additional disk space will be used.
240s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc6-dev arm64 2.41-1ubuntu2 [1750 kB]
242s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc-dev-bin arm64 2.41-1ubuntu2 [24.0 kB]
242s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc6 arm64 2.41-1ubuntu2 [2910 kB]
246s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libc-bin arm64 2.41-1ubuntu2 [600 kB]
247s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 locales all 2.41-1ubuntu2 [4246 kB]
252s Preconfiguring packages ...
252s Fetched 9530 kB in 12s (821 kB/s)
252s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81647 files and directories currently installed.)
252s Preparing to unpack .../libc6-dev_2.41-1ubuntu2_arm64.deb ...
252s Unpacking libc6-dev:arm64 (2.41-1ubuntu2) over (2.41-1ubuntu1) ...
252s Preparing to unpack .../libc-dev-bin_2.41-1ubuntu2_arm64.deb ...
252s Unpacking libc-dev-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ...
252s Preparing to unpack .../libc6_2.41-1ubuntu2_arm64.deb ...
252s Unpacking libc6:arm64 (2.41-1ubuntu2) over (2.41-1ubuntu1) ...
253s Setting up libc6:arm64 (2.41-1ubuntu2) ...
253s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81647 files and directories currently installed.)
253s Preparing to unpack .../libc-bin_2.41-1ubuntu2_arm64.deb ...
253s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ...
253s Setting up libc-bin (2.41-1ubuntu2) ...
253s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81647 files and directories currently installed.)
253s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ...
253s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ...
253s Setting up locales (2.41-1ubuntu2) ...
254s Generating locales (this might take a while)...
256s en_US.UTF-8... done
256s Generation complete.
256s Setting up libc-dev-bin (2.41-1ubuntu2) ...
256s Setting up libc6-dev:arm64 (2.41-1ubuntu2) ...
256s Processing triggers for man-db (2.13.0-1) ...
257s Processing triggers for systemd (257.3-1ubuntu3) ...
258s Reading package lists...
258s Building dependency tree...
258s Reading state information...
258s Starting pkgProblemResolver with broken count: 0
258s Starting 2 pkgProblemResolver with broken count: 0
258s Done
259s Solving dependencies...
259s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
259s autopkgtest [13:45:18]: rebooting testbed after setup commands that affected boot
283s autopkgtest [13:45:42]: testbed running kernel: Linux 6.14.0-10-generic #10-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 12 15:45:31 UTC 2025
285s autopkgtest [13:45:44]: @@@@@@@@@@@@@@@@@@@@ apt-source oath-toolkit
295s Get:1 http://ftpmaster.internal/ubuntu plucky/main oath-toolkit 2.6.11-3ubuntu1 (dsc) [2479 B]
295s Get:2 http://ftpmaster.internal/ubuntu plucky/main oath-toolkit 2.6.11-3ubuntu1 (tar) [4699 kB]
295s Get:3 http://ftpmaster.internal/ubuntu plucky/main oath-toolkit 2.6.11-3ubuntu1 (asc) [228 B]
295s Get:4 http://ftpmaster.internal/ubuntu plucky/main oath-toolkit 2.6.11-3ubuntu1 (diff) [18.3 kB]
295s gpgv: Signature made Wed Oct 16 17:32:48 2024 UTC
295s gpgv: using RSA key 38C77D33856973A58762FBFE401EFCBCDA0FF1BD
295s gpgv: Can't check signature: No public key
295s dpkg-source: warning: cannot verify inline signature for ./oath-toolkit_2.6.11-3ubuntu1.dsc: no acceptable signature found
296s autopkgtest [13:45:55]: testing package oath-toolkit version 2.6.11-3ubuntu1
296s autopkgtest [13:45:55]: build not needed
298s autopkgtest [13:45:57]: test liboath: preparing testbed
298s Reading package lists...
299s Building dependency tree...
299s Reading state information...
299s Starting pkgProblemResolver with broken count: 0
299s Starting 2 pkgProblemResolver with broken count: 0
299s Done
300s The following NEW packages will be installed:
300s build-essential cpp cpp-14 cpp-14-aarch64-linux-gnu cpp-aarch64-linux-gnu
300s g++ g++-14 g++-14-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-14
300s gcc-14-aarch64-linux-gnu gcc-aarch64-linux-gnu libasan8 libcc1-0
300s libgcc-14-dev libgomp1 libhwasan0 libisl23 libitm1 liblsan0 libmpc3
300s liboath-dev liboath0t64 libpkgconf3 libpskc-dev libpskc0t64 libstdc++-14-dev
300s libtsan2 libubsan1 libxmlsec1t64 libxmlsec1t64-openssl libxslt1.1 oathtool
300s pkg-config pkgconf pkgconf-bin pskctool
300s 0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
300s Need to get 60.8 MB of archives.
300s After this operation, 209 MB of additional disk space will be used.
300s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 libisl23 arm64 0.27-1 [676 kB]
301s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libmpc3 arm64 1.3.1-1build2 [56.8 kB]
301s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [10.6 MB]
313s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14 arm64 14.2.0-17ubuntu3 [1028 B]
313s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [5558 B]
313s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp arm64 4:14.2.0-1ubuntu1 [22.4 kB]
313s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 libcc1-0 arm64 15-20250222-0ubuntu1 [44.2 kB]
313s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 libgomp1 arm64 15-20250222-0ubuntu1 [146 kB]
313s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 libitm1 arm64 15-20250222-0ubuntu1 [28.0 kB]
313s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 libasan8 arm64 15-20250222-0ubuntu1 [2924 kB]
317s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 liblsan0 arm64 15-20250222-0ubuntu1 [1319 kB]
318s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 libtsan2 arm64 15-20250222-0ubuntu1 [2694 kB]
321s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 libubsan1 arm64 15-20250222-0ubuntu1 [1178 kB]
322s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 libhwasan0 arm64 15-20250222-0ubuntu1 [1642 kB]
324s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 libgcc-14-dev arm64 14.2.0-17ubuntu3 [2593 kB]
326s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [20.9 MB]
348s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14 arm64 14.2.0-17ubuntu3 [526 kB]
348s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1200 B]
348s Get:19 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc arm64 4:14.2.0-1ubuntu1 [4998 B]
348s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 libstdc++-14-dev arm64 14.2.0-17ubuntu3 [2499 kB]
350s Get:21 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu3 [12.1 MB]
362s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14 arm64 14.2.0-17ubuntu3 [21.8 kB]
362s Get:23 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [956 B]
362s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 g++ arm64 4:14.2.0-1ubuntu1 [1080 B]
362s Get:25 http://ftpmaster.internal/ubuntu plucky/main arm64 build-essential arm64 12.10ubuntu1 [4932 B]
362s Get:26 http://ftpmaster.internal/ubuntu plucky/main arm64 liboath0t64 arm64 2.6.11-3ubuntu1 [43.4 kB]
362s Get:27 http://ftpmaster.internal/ubuntu plucky/main arm64 liboath-dev arm64 2.6.11-3ubuntu1 [73.1 kB]
362s Get:28 http://ftpmaster.internal/ubuntu plucky/main arm64 libpkgconf3 arm64 1.8.1-4 [31.4 kB]
362s Get:29 http://ftpmaster.internal/ubuntu plucky/main arm64 libxslt1.1 arm64 1.1.39-0exp1ubuntu2 [168 kB]
362s Get:30 http://ftpmaster.internal/ubuntu plucky/main arm64 libxmlsec1t64 arm64 1.2.41-1build1 [143 kB]
362s Get:31 http://ftpmaster.internal/ubuntu plucky/main arm64 libxmlsec1t64-openssl arm64 1.2.41-1build1 [78.2 kB]
362s Get:32 http://ftpmaster.internal/ubuntu plucky/main arm64 libpskc0t64 arm64 2.6.11-3ubuntu1 [27.9 kB]
362s Get:33 http://ftpmaster.internal/ubuntu plucky/main arm64 libpskc-dev arm64 2.6.11-3ubuntu1 [110 kB]
362s Get:34 http://ftpmaster.internal/ubuntu plucky/universe arm64 oathtool arm64 2.6.11-3ubuntu1 [24.8 kB]
363s Get:35 http://ftpmaster.internal/ubuntu plucky/main arm64 pkgconf-bin arm64 1.8.1-4 [20.9 kB]
363s Get:36 http://ftpmaster.internal/ubuntu plucky/main arm64 pkgconf arm64 1.8.1-4 [16.7 kB]
363s Get:37 http://ftpmaster.internal/ubuntu plucky/main arm64 pkg-config arm64 1.8.1-4 [7362 B]
363s Get:38 http://ftpmaster.internal/ubuntu plucky/universe arm64 pskctool arm64 2.6.11-3ubuntu1 [13.4 kB]
363s Fetched 60.8 MB in 1min 3s (968 kB/s)
363s Selecting previously unselected package libisl23:arm64.
363s (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81647 files and directories currently installed.)
363s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ...
363s Unpacking libisl23:arm64 (0.27-1) ...
363s Selecting previously unselected package libmpc3:arm64.
363s Preparing to unpack .../01-libmpc3_1.3.1-1build2_arm64.deb ...
363s Unpacking libmpc3:arm64 (1.3.1-1build2) ...
363s Selecting previously unselected package cpp-14-aarch64-linux-gnu.
363s Preparing to unpack .../02-cpp-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ...
363s Unpacking cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
364s Selecting previously unselected package cpp-14.
364s Preparing to unpack .../03-cpp-14_14.2.0-17ubuntu3_arm64.deb ...
364s Unpacking cpp-14 (14.2.0-17ubuntu3) ...
364s Selecting previously unselected package cpp-aarch64-linux-gnu.
364s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ...
364s Unpacking cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
364s Selecting previously unselected package cpp.
364s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_arm64.deb ...
364s Unpacking cpp (4:14.2.0-1ubuntu1) ...
364s Selecting previously unselected package libcc1-0:arm64.
364s Preparing to unpack .../06-libcc1-0_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libcc1-0:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libgomp1:arm64.
364s Preparing to unpack .../07-libgomp1_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libgomp1:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libitm1:arm64.
364s Preparing to unpack .../08-libitm1_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libitm1:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libasan8:arm64.
364s Preparing to unpack .../09-libasan8_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libasan8:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package liblsan0:arm64.
364s Preparing to unpack .../10-liblsan0_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking liblsan0:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libtsan2:arm64.
364s Preparing to unpack .../11-libtsan2_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libtsan2:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libubsan1:arm64.
364s Preparing to unpack .../12-libubsan1_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libubsan1:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libhwasan0:arm64.
364s Preparing to unpack .../13-libhwasan0_15-20250222-0ubuntu1_arm64.deb ...
364s Unpacking libhwasan0:arm64 (15-20250222-0ubuntu1) ...
364s Selecting previously unselected package libgcc-14-dev:arm64.
364s Preparing to unpack .../14-libgcc-14-dev_14.2.0-17ubuntu3_arm64.deb ...
364s Unpacking libgcc-14-dev:arm64 (14.2.0-17ubuntu3) ...
364s Selecting previously unselected package gcc-14-aarch64-linux-gnu.
364s Preparing to unpack .../15-gcc-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ...
364s Unpacking gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
365s Selecting previously unselected package gcc-14.
365s Preparing to unpack .../16-gcc-14_14.2.0-17ubuntu3_arm64.deb ...
365s Unpacking gcc-14 (14.2.0-17ubuntu3) ...
365s Selecting previously unselected package gcc-aarch64-linux-gnu.
365s Preparing to unpack .../17-gcc-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ...
365s Unpacking gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
365s Selecting previously unselected package gcc.
365s Preparing to unpack .../18-gcc_4%3a14.2.0-1ubuntu1_arm64.deb ...
365s Unpacking gcc (4:14.2.0-1ubuntu1) ...
365s Selecting previously unselected package libstdc++-14-dev:arm64.
365s Preparing to unpack .../19-libstdc++-14-dev_14.2.0-17ubuntu3_arm64.deb ...
365s Unpacking libstdc++-14-dev:arm64 (14.2.0-17ubuntu3) ...
365s Selecting previously unselected package g++-14-aarch64-linux-gnu.
365s Preparing to unpack .../20-g++-14-aarch64-linux-gnu_14.2.0-17ubuntu3_arm64.deb ...
365s Unpacking g++-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
365s Selecting previously unselected package g++-14.
365s Preparing to unpack .../21-g++-14_14.2.0-17ubuntu3_arm64.deb ...
365s Unpacking g++-14 (14.2.0-17ubuntu3) ...
365s Selecting previously unselected package g++-aarch64-linux-gnu.
365s Preparing to unpack .../22-g++-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ...
365s Unpacking g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
365s Selecting previously unselected package g++.
365s Preparing to unpack .../23-g++_4%3a14.2.0-1ubuntu1_arm64.deb ...
365s Unpacking g++ (4:14.2.0-1ubuntu1) ...
365s Selecting previously unselected package build-essential.
365s Preparing to unpack .../24-build-essential_12.10ubuntu1_arm64.deb ...
365s Unpacking build-essential (12.10ubuntu1) ...
365s Selecting previously unselected package liboath0t64:arm64.
365s Preparing to unpack .../25-liboath0t64_2.6.11-3ubuntu1_arm64.deb ...
365s Unpacking liboath0t64:arm64 (2.6.11-3ubuntu1) ...
365s Selecting previously unselected package liboath-dev:arm64.
365s Preparing to unpack .../26-liboath-dev_2.6.11-3ubuntu1_arm64.deb ...
365s Unpacking liboath-dev:arm64 (2.6.11-3ubuntu1) ...
365s Selecting previously unselected package libpkgconf3:arm64.
365s Preparing to unpack .../27-libpkgconf3_1.8.1-4_arm64.deb ...
365s Unpacking libpkgconf3:arm64 (1.8.1-4) ...
365s Selecting previously unselected package libxslt1.1:arm64.
365s Preparing to unpack .../28-libxslt1.1_1.1.39-0exp1ubuntu2_arm64.deb ...
365s Unpacking libxslt1.1:arm64 (1.1.39-0exp1ubuntu2) ...
365s Selecting previously unselected package libxmlsec1t64:arm64.
365s Preparing to unpack .../29-libxmlsec1t64_1.2.41-1build1_arm64.deb ...
365s Unpacking libxmlsec1t64:arm64 (1.2.41-1build1) ...
365s Selecting previously unselected package libxmlsec1t64-openssl:arm64.
365s Preparing to unpack .../30-libxmlsec1t64-openssl_1.2.41-1build1_arm64.deb ...
365s Unpacking libxmlsec1t64-openssl:arm64 (1.2.41-1build1) ...
365s Selecting previously unselected package libpskc0t64:arm64.
365s Preparing to unpack .../31-libpskc0t64_2.6.11-3ubuntu1_arm64.deb ...
365s Unpacking libpskc0t64:arm64 (2.6.11-3ubuntu1) ...
365s Selecting previously unselected package libpskc-dev:arm64.
365s Preparing to unpack .../32-libpskc-dev_2.6.11-3ubuntu1_arm64.deb ...
365s Unpacking libpskc-dev:arm64 (2.6.11-3ubuntu1) ...
365s Selecting previously unselected package oathtool.
365s Preparing to unpack .../33-oathtool_2.6.11-3ubuntu1_arm64.deb ...
365s Unpacking oathtool (2.6.11-3ubuntu1) ...
365s Selecting previously unselected package pkgconf-bin.
366s Preparing to unpack .../34-pkgconf-bin_1.8.1-4_arm64.deb ...
366s Unpacking pkgconf-bin (1.8.1-4) ...
366s Selecting previously unselected package pkgconf:arm64.
366s Preparing to unpack .../35-pkgconf_1.8.1-4_arm64.deb ...
366s Unpacking pkgconf:arm64 (1.8.1-4) ...
366s Selecting previously unselected package pkg-config:arm64.
366s Preparing to unpack .../36-pkg-config_1.8.1-4_arm64.deb ...
366s Unpacking pkg-config:arm64 (1.8.1-4) ...
366s Selecting previously unselected package pskctool.
366s Preparing to unpack .../37-pskctool_2.6.11-3ubuntu1_arm64.deb ...
366s Unpacking pskctool (2.6.11-3ubuntu1) ...
366s Setting up libgomp1:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libpkgconf3:arm64 (1.8.1-4) ...
366s Setting up libmpc3:arm64 (1.3.1-1build2) ...
366s Setting up pkgconf-bin (1.8.1-4) ...
366s Setting up libubsan1:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libhwasan0:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libasan8:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libxslt1.1:arm64 (1.1.39-0exp1ubuntu2) ...
366s Setting up liboath0t64:arm64 (2.6.11-3ubuntu1) ...
366s Setting up libtsan2:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libisl23:arm64 (0.27-1) ...
366s Setting up libcc1-0:arm64 (15-20250222-0ubuntu1) ...
366s Setting up liblsan0:arm64 (15-20250222-0ubuntu1) ...
366s Setting up libitm1:arm64 (15-20250222-0ubuntu1) ...
366s Setting up oathtool (2.6.11-3ubuntu1) ...
366s Setting up libxmlsec1t64:arm64 (1.2.41-1build1) ...
366s Setting up pkgconf:arm64 (1.8.1-4) ...
366s Setting up libxmlsec1t64-openssl:arm64 (1.2.41-1build1) ...
366s Setting up pkg-config:arm64 (1.8.1-4) ...
366s Setting up cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
366s Setting up liboath-dev:arm64 (2.6.11-3ubuntu1) ...
366s Setting up libgcc-14-dev:arm64 (14.2.0-17ubuntu3) ...
366s Setting up libstdc++-14-dev:arm64 (14.2.0-17ubuntu3) ...
366s Setting up libpskc0t64:arm64 (2.6.11-3ubuntu1) ...
366s Setting up cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
366s Setting up cpp-14 (14.2.0-17ubuntu3) ...
366s Setting up cpp (4:14.2.0-1ubuntu1) ...
366s Setting up gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
366s Setting up libpskc-dev:arm64 (2.6.11-3ubuntu1) ...
366s Setting up gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
366s Setting up g++-14-aarch64-linux-gnu (14.2.0-17ubuntu3) ...
366s Setting up pskctool (2.6.11-3ubuntu1) ...
366s Setting up gcc-14 (14.2.0-17ubuntu3) ...
366s Setting up g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ...
366s Setting up g++-14 (14.2.0-17ubuntu3) ...
366s Setting up gcc (4:14.2.0-1ubuntu1) ...
366s Setting up g++ (4:14.2.0-1ubuntu1) ...
366s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
366s Setting up build-essential (12.10ubuntu1) ...
366s Processing triggers for man-db (2.13.0-1) ...
367s Processing triggers for libc-bin (2.41-1ubuntu2) ...
368s autopkgtest [13:47:07]: test liboath: [-----------------------
369s PASS: gcc
369s PASS: run
369s OATHTOOL(1) User Commands OATHTOOL(1)
369s
369s NAME
369s oathtool - Open AuTHentication (OATH) one-time password tool
369s
369s SYNOPSIS
369s oathtool [OPTION]... [KEY [OTP]]...
369s
369s DESCRIPTION
369s Generate and validate OATH one-time passwords. KEY and OTP is the
369s string '-' to read from standard input, '@FILE' to read from indicated
369s filename, or a hex encoded value (not recommended on multi-user sys‐
369s tems).
369s
369s -h, --help
369s Print help and exit
369s
369s -V, --version
369s Print version and exit
369s
369s --hotp use event-based HOTP mode (default=on)
369s
369s --totp[=MODE]
369s use time-variant TOTP mode (values "SHA1", "SHA256", or "SHA512")
369s (default=`SHA1')
369s
369s -b, --base32
369s use base32 encoding of KEY instead of hex (default=off)
369s
369s -c, --counter=COUNTER
369s HOTP counter value
369s
369s -s, --time-step-size=DURATION TOTP time-step duration
369s (default=`30s')
369s
369s -S, --start-time=TIME
369s when to start counting time steps for TOTP (default=`1970-01-01
369s 00:00:00 UTC')
369s
369s -N, --now=TIME
369s use this time as current time for TOTP (default=`now')
369s
369s -d, --digits=DIGITS
369s number of digits in one-time password
369s
369s -w, --window=WIDTH
369s number of additional OTPs to generate or validate against
369s
369s -v, --verbose
369s explain what is being done (default=off)
369s
369s EXAMPLES
369s To generate a time-based (TOTP) one-time password from a key protected
369s by GnuPG:
369s
369s $ gpg --decrypt --quiet ~/.my-totp-secret.asc | oathtool --totp -
369s
369s How to create the encrypted file is outside of scope of this manual, see
369s gpg(1), however the following two commands may help you to encrypt the
369s secret symmetrically (using a password) or asymmetrically (if you have
369s created a private key), respectively. You will need to provide the se‐
369s cret from the terminal after invoking the commands.
369s
369s $ gpg --symmetric > ~/.my-totp-secret.asc
369s $ gpg --encrypt --default-recipient-self > ~/.my-totp-secret.asc
369s
369s For easier reading, the rest of this man page provides the KEY and OTP
369s on the command line. Keep in mind that this usage is not recommended
369s since on most multi-user systems, command-line parameters of running
369s processes can be seen by other users.
369s
369s To generate the first event-based (HOTP) one-time password for an all-
369s zero key:
369s
369s $ echo 00 | oathtool -
369s 328482
369s $
369s
369s Sometime you want to generate more than a single OTP. To generate 10
369s additional event-based one-time passwords, with the secret key used in
369s the examples of RFC 4226, use the -w (--window) parameter:
369s
369s $ oathtool -w 10 3132333435363738393031323334353637383930
369s 755224
369s 287082
369s 359152
369s 969429
369s 338314
369s 254676
369s 287922
369s 162583
369s 399871
369s 520489
369s 403154
369s $
369s
369s In the last output, the counter for the first OTP was 0, the second OTP
369s had a counter of 1, and so on up to 10.
369s
369s In order to use keys encoded in Base32 instead of hex, you may provide
369s the -b (--base32) parameter:
369s
369s $ oathtool --base32 -w 3 GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ
369s 755224
369s 287082
369s 359152
369s 969429
369s $
369s
369s The tool ignore whitespace in base32 data and re-add padding if neces‐
369s sary, thus you may supply keys formatted like the one below.
369s
369s $ oathtool --base32 --totp "gr6d 5br7 25s6 vnck v4vl hlao re"
369s 977872
369s $
369s
369s To generate a particular OTP, use the -c (--counter) parameter to give
369s the exact position directly:
369s
369s $ oathtool -c 5 3132333435363738393031323334353637383930
369s 254676
369s $
369s
369s To validate a HOTP one-time password supply the OTP last on the command
369s line:
369s
369s $ oathtool -w 10 3132333435363738393031323334353637383930 969429
369s 3
369s $
369s
369s The output indicates the counter that was used. It works by starting
369s with counter 0 and increment until it founds a match (or not), within
369s the supplied window of 10 OTPs.
369s
369s The tool supports time-variant one-time passwords, in so called TOTP
369s mode. Usage is similar, but --totp needs to be provided:
369s
369s $ oathtool --totp 00
369s 943388
369s $
369s
369s Don't be alarmed if you do not get the same output, this is because the
369s output depends on the current time. To generate a TOTP for a particular
369s fixed time use the -N (--now) parameter:
369s
369s $ oathtool --totp --now "2008-04-23 17:42:17 UTC" 00
369s 974945
369s $
369s
369s The format is a mostly free format human readable date string such as
369s "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29 16:21:42" or even "next
369s Thursday". It is the same used as the --date parameter of the date(1)
369s tool.
369s
369s The default MAC algorithm to use with TOTP is HMAC-SHA1 and this is what
369s is usually used. The tool supports two other MACs, namely the
369s HMAC-SHA256 and HMAC-SHA512 as well. To use either of these, qualify
369s the --totp parameter with a value. Use "SHA256" for HMAC-SHA256 and
369s "SHA512" for HMAC-SHA512. The following demonstrate generating one of
369s the RFC 6238 test vectors.
369s
369s $ oathtool --totp=SHA256 --digits=8 --now "2009-02-13 23:31:30 UTC"
369s 3132333435363738393031323334353637383930313233343536373839303132
369s 91819424
369s $
369s
369s You may generate several TOTPs by specifying the --window parameter,
369s similar to how it works for HOTP. The OTPs generated here will be for
369s the initial time (normally current time) and then each following time
369s step (e.g., 30 second window).
369s
369s $ oathtool --totp 00 -w5
369s 815120
369s 003818
369s 814756
369s 184042
369s 582326
369s 733842
369s $
369s
369s You can validate a TOTP one-time password by supplying the secret and a
369s window parameter (number of time steps before or after current time):
369s
369s $ oathtool --totp -w 5 00 `oathtool --totp 00`
369s 0
369s $
369s
369s Similar when generating TOTPs, you can use a -N (--now) parameter to
369s specify the time to use instead of the current time:
369s
369s $ oathtool --totp --now="2005-03-18 01:58:29 UTC" -w 10000000
369s 3132333435363738393031323334353637383930 89005924
369s 4115227
369s $
369s
369s The previous test uses values from the TOTP specification and will
369s stress test the tool because the expected window is around 4 million
369s time-steps.
369s
369s There are two system parameters for TOTP: the time-step size and the
369s time start.
369s
369s By default the time-step size is 30 seconds, which means you get a new
369s OTP every 30 seconds. You may modify this with the -s
369s (--time-step-size) parameter:
369s
369s $ oathtool --totp --time-step-size=45s 00
369s 109841
369s $
369s
369s The values are valid ISO-8601 durations, see:
369s http://en.wikipedia.org/wiki/ISO_8601#Durations
369s
369s The time start is normally 1970-01-01 00:00:00 UTC but you may change it
369s using the -S (--start-time):
369s
369s $ oathtool --totp --start-time "1980-01-01 00:00:00 UTC" 00
369s 273884
369s $
369s
369s To get more information about what the tool is using use the -v (--ver‐
369s bose) parameter. Finally, to generate the last TOTP (for SHA-1) in the
369s test vector table of RFC 6238 you can invoke the tool like this:
369s
369s $ oathtool --totp -v -N "2033-05-18 03:33:20 UTC" -d8
369s 3132333435363738393031323334353637383930
369s Hex secret: 3132333435363738393031323334353637383930
369s Base32 secret: GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ
369s Digits: 8
369s Window size: 0
369s TOTP mode: SHA1
369s Step size (seconds): 30
369s Start time: 1970-01-01 00:00:00 UTC (0)
369s Time now: 2033-05-18 03:33:20 UTC (2000000000)
369s Counter: 0x3F940AA (66666666)
369s
369s 69279037
369s $
369s
369s AUTHOR
369s Written by Simon Josefsson.
369s
369s REPORTING BUGS
369s Report bugs to: oath-toolkit-help@nongnu.org oathtool home page:
369s
369s General help using GNU software:
369s
369s COPYRIGHT
369s Copyright © 2009-2024 Simon Josefsson. License GPLv3+: GNU GPL version
369s 3 or later .
369s This is free software: you are free to change and redistribute it.
369s There is NO WARRANTY, to the extent permitted by law.
369s
369s OATH Toolkit 2.6.11 October 2024 OATHTOOL(1)
369s oath_init(3) liboath oath_init(3)
369s
369s NAME
369s oath_init - API function
369s
369s SYNOPSIS
369s #include
369s
369s int oath_init( void);
369s
369s ARGUMENTS
369s void
369s
369s DESCRIPTION
369s This function initializes the OATH library. Every user of this library
369s needs to call this function before using other functions. You should
369s call oath_done() when use of the OATH library is no longer needed.
369s
369s Note that this function may also initialize Libgcrypt, if the OATH li‐
369s brary is built with libgcrypt support and libgcrypt has not been ini‐
369s tialized before. Thus if you want to manually initialize libgcrypt you
369s must do it before calling this function. This is useful in cases you
369s want to disable libgcrypt's internal lockings etc.
369s
369s RETURNS
369s On success, OATH_OK (zero) is returned, otherwise an error code is re‐
369s turned.
369s
369s REPORTING BUGS
369s Report bugs to . liboath home page:
369s https://www.nongnu.org/oath-toolkit/ General help using GNU software:
369s http://www.gnu.org/gethelp/
369s
369s COPYRIGHT
369s Copyright © 2009-2020 Simon Josefsson.
369s Copying and distribution of this file, with or without modification, are
369s permitted in any medium without royalty provided the copyright notice
369s and this notice are preserved.
369s
369s liboath 2.6.11 oath_init(3)
369s PASS: man
369s oathtool (OATH Toolkit) 2.6.11
369s Copyright (C) 2009-2024 Simon Josefsson.
369s License GPLv3+: GNU GPL version 3 or later .
369s This is free software: you are free to change and redistribute it.
369s There is NO WARRANTY, to the extent permitted by law.
369s
369s Written by Simon Josefsson.
369s Usage: oathtool [OPTION]... [KEY [OTP]]...
369s Generate and validate OATH one-time passwords. KEY and OTP is the string '-'
369s to read from standard input, '@FILE' to read from indicated filename, or a hex
369s encoded value (not recommended on multi-user systems).
369s
369s -h, --help Print help and exit
369s -V, --version Print version and exit
369s --hotp use event-based HOTP mode (default=on)
369s --totp[=MODE] use time-variant TOTP mode (values "SHA1",
369s "SHA256", or "SHA512") (default=`SHA1')
369s -b, --base32 use base32 encoding of KEY instead of hex
369s (default=off)
369s -c, --counter=COUNTER HOTP counter value
369s -s, --time-step-size=DURATION TOTP time-step duration (default=`30s')
369s -S, --start-time=TIME when to start counting time steps for TOTP
369s (default=`1970-01-01 00:00:00 UTC')
369s -N, --now=TIME use this time as current time for TOTP
369s (default=`now')
369s -d, --digits=DIGITS number of digits in one-time password
369s -w, --window=WIDTH number of additional OTPs to generate or
369s validate against
369s -v, --verbose explain what is being done (default=off)
369s
369s Report bugs to: oath-toolkit-help@nongnu.org
369s oathtool home page:
369s General help using GNU software:
369s PASS: oathtool liboath version
369s autopkgtest [13:47:08]: test liboath: -----------------------]
370s autopkgtest [13:47:09]: test liboath: - - - - - - - - - - results - - - - - - - - - -
370s liboath PASS
370s autopkgtest [13:47:09]: test libpskc: preparing testbed
370s Reading package lists...
371s Building dependency tree...
371s Reading state information...
371s Starting pkgProblemResolver with broken count: 0
371s Starting 2 pkgProblemResolver with broken count: 0
371s Done
372s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
373s autopkgtest [13:47:12]: test libpskc: [-----------------------
373s PASS: gcc
373s PASS: run
373s PSKCTOOL(1) User Commands PSKCTOOL(1)
373s
373s NAME
373s pskctool - Portable Symmetric Key Container (PSKC) tool
373s
373s SYNOPSIS
373s pskctool [OPTION]... [FILE]...
373s
373s DESCRIPTION
373s Manipulate Portable Symmetric Key Container (PSKC) data.
373s
373s This tool allows you to parse, print, validate, sign and verify PSKC
373s data. The input is provided in FILE or on standard input.
373s
373s -h, --help
373s Print help and exit
373s
373s -V, --version
373s Print version and exit
373s
373s --strict
373s Fail hard on PSKC parse error (default=off)
373s
373s -d, --debug
373s Show debug messages on stderr (default=off)
373s
373s -q, --quiet
373s Quiet operation (default=off)
373s
373s -v, --verbose
373s Produce more output (default=off)
373s
373s Selecting one of the following modes is required:
373s
373s Mode: info
373s
373s -i, --info
373s Parse and print human readable summary of PSKC input (de‐
373s fault=off)
373s
373s Mode: validate
373s
373s -e, --validate
373s Validate PSKC input against XML Schema (default=off)
373s
373s Mode: sign
373s
373s Digitally sign PSKC data
373s
373s --sign Sign PSKC input (default=off)
373s
373s --sign-key=FILE
373s Private key to sign with
373s
373s --sign-crt=FILE
373s X.509 certificate to sign with
373s
373s Mode: verify
373s
373s Verify digitally signed PSKC data
373s
373s --verify
373s Verify signed PSKC input (default=off)
373s
373s --verify-crt=FILE
373s Trusted X.509 certificate for verification
373s
373s EXAMPLES
373s See .
373s
373s AUTHOR
373s Written by Simon Josefsson.
373s
373s REPORTING BUGS
373s Report bugs to: oath-toolkit-help@nongnu.org pskctool home page:
373s
373s General help using GNU software:
373s
373s COPYRIGHT
373s Copyright © 2024 Simon Josefsson. License GPLv3+: GNU GPL version 3 or
373s later .
373s This is free software: you are free to change and redistribute it.
373s There is NO WARRANTY, to the extent permitted by law.
373s
373s OATH Toolkit 2.6.11 January 2024 PSKCTOOL(1)
373s pskc_global_init(3) libpskc pskc_global_init(3)
373s
373s NAME
373s pskc_global_init - API function
373s
373s SYNOPSIS
373s #include
373s
373s int pskc_global_init( void);
373s
373s ARGUMENTS
373s void
373s
373s DESCRIPTION
373s This function initializes the PSKC library. Every user of this library
373s needs to call this function before using other functions. You should
373s call pskc_global_done() when use of the PSKC library is no longer
373s needed.
373s
373s RETURNS
373s On success, PSKC_OK (zero) is returned, otherwise an error code is re‐
373s turned.
373s
373s REPORTING BUGS
373s Report bugs to . libpskc home page:
373s https://www.nongnu.org/oath-toolkit/ General help using GNU software:
373s http://www.gnu.org/gethelp/
373s
373s COPYRIGHT
373s Copyright © 2012-2020 Simon Josefsson.
373s Copying and distribution of this file, with or without modification, are
373s permitted in any medium without royalty provided the copyright notice
373s and this notice are preserved.
373s
373s libpskc 2.6.11 pskc_global_init(3)
373s PASS: man
373s pskctool (OATH Toolkit) 2.6.11
373s Copyright (C) 2024 Simon Josefsson.
373s License GPLv3+: GNU GPL version 3 or later .
373s This is free software: you are free to change and redistribute it.
373s There is NO WARRANTY, to the extent permitted by law.
373s
373s Written by Simon Josefsson.
373s Usage: pskctool [OPTION]... [FILE]...
373s Manipulate Portable Symmetric Key Container (PSKC) data.
373s
373s This tool allows you to parse, print, validate, sign and verify PSKC data. The
373s input is provided in FILE or on standard input.
373s
373s -h, --help Print help and exit
373s -V, --version Print version and exit
373s --strict Fail hard on PSKC parse error (default=off)
373s -d, --debug Show debug messages on stderr (default=off)
373s -q, --quiet Quiet operation (default=off)
373s -v, --verbose Produce more output (default=off)
373s
373s Selecting one of the following modes is required:
373s
373s Mode: info
373s -i, --info Parse and print human readable summary of PSKC input
373s (default=off)
373s
373s Mode: validate
373s -e, --validate Validate PSKC input against XML Schema (default=off)
373s
373s Mode: sign
373s Digitally sign PSKC data
373s --sign Sign PSKC input (default=off)
373s --sign-key=FILE Private key to sign with
373s --sign-crt=FILE X.509 certificate to sign with
373s
373s Mode: verify
373s Verify digitally signed PSKC data
373s --verify Verify signed PSKC input (default=off)
373s --verify-crt=FILE Trusted X.509 certificate for verification
373s
373s Report bugs to: oath-toolkit-help@nongnu.org
373s pskctool home page:
373s General help using GNU software:
373s PASS: pskctool libpskc version
374s autopkgtest [13:47:13]: test libpskc: -----------------------]
374s autopkgtest [13:47:13]: test libpskc: - - - - - - - - - - results - - - - - - - - - -
374s libpskc PASS
375s autopkgtest [13:47:14]: test oathtool: preparing testbed
375s Reading package lists...
375s Building dependency tree...
375s Reading state information...
375s Starting pkgProblemResolver with broken count: 0
375s Starting 2 pkgProblemResolver with broken count: 0
375s Done
376s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
377s autopkgtest [13:47:16]: test oathtool: [-----------------------
378s PASS oathtool --version
378s PASS oathtool
378s PASS oathtool -h
378s PASS oathtool -z
378s PASS oathtool Z
378s PASS oathtool 00
378s PASS oathtool --base32 GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ
378s PASS oathtool --base32 gezdgnbvgy3tqojqgezdgnbvgy3tqojq
378s PASS oathtool --base32 gr6d5br725s6vnckv4vlhlaore
378s PASS oathtool -d 6 00
378s PASS oathtool -d 9 00
378s PASS oathtool --digits=6 00
378s PASS oathtool --digits 6 00
378s PASS oathtool --digits 7 00
378s PASS oathtool --digits 8 00
378s PASS oathtool --counter 0 --digits 8 00
378s PASS oathtool -c 1 --digits 8 00
378s PASS oathtool --counter 1 --digits 8 00
378s PASS oathtool --window 4 -d 7 00
378s PASS oathtool --window 4 -c 4 00
378s PASS oathtool 00 328482
378s PASS oathtool -c 4 00 964213
378s PASS oathtool -c 4 -w 4 00 964213
378s PASS oathtool -c 4 -w 4 -d 6 00 964213
378s PASS oathtool -c 4 -w 4 -d 7 00 964213
378s PASS oathtool -c 4 -d 7 00 964213
378s PASS oathtool --totp 3132333435363738393031323334353637383930 -N @59 -d8
378s PASS oathtool --totp=sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @59 -d8
378s PASS oathtool --totp=Sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @59 -d8
378s PASS oathtool --totp=SHA256 3132333435363738393031323334353637383930313233343536373839303132 -N @59 -d8
378s PASS oathtool --totp=sha512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @59 -d8
378s PASS oathtool --totp=sHa512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @59 -d8
378s PASS oathtool --totp=SHA512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @59 -d8
378s PASS oathtool --totp 3132333435363738393031323334353637383930 -N @1111111109 -d8
378s PASS oathtool --totp=sha1 3132333435363738393031323334353637383930 -N @1111111109 -d8
378s PASS oathtool --totp=SHA1 3132333435363738393031323334353637383930 -N @1111111109 -d8
378s PASS oathtool --totp=sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @1111111109 -d8
378s PASS oathtool --totp=sha512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @1111111109 -d8
378s PASS oathtool --totp 3132333435363738393031323334353637383930 -N @1111111111 -d8
378s PASS oathtool --totp=sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @1111111111 -d8
378s PASS oathtool --totp=sha512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @1111111111 -d8
378s PASS oathtool --totp 3132333435363738393031323334353637383930 -N @1234567890 -d8
378s PASS oathtool --totp=sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @1234567890 -d8
378s PASS oathtool --totp=sha512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @1234567890 -d8
378s PASS oathtool --totp 3132333435363738393031323334353637383930 -N @2000000000 -d8
378s PASS oathtool --totp=sha256 3132333435363738393031323334353637383930313233343536373839303132 -N @2000000000 -d8
378s PASS oathtool --totp=sha512 31323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334 -N @2000000000 -d8
378s PASS oathtool --totp 00 --time-step-size=45m --start-time=now --now=now
378s PASS oathtool --totp 00 --time-step-size=1m --start-time=now --now=hour -d7
378s PASS oathtool --totp --now @1111111109 -w 10 3132333435363738393031323334353637383930 07081804
378s PASS oathtool --totp=sha256 --now @1111111109 -w 10 3132333435363738393031323334353637383930313233343536373839303132 68084774
378s PASS oathtool --totp --now @1111111109 -w 10 3132333435363738393031323334353637383930 14050471
378s PASS oathtool --totp --now @1111111109 -w 5 3132333435363738393031323334353637383930
378s PASS oathtool --totp=sha256 --now @1111111109 -w 5 3132333435363738393031323334353637383930313233343536373839303132
378s PASS oathtool --hotp --counter 1099511627776 00
378s PASS oathtool --verbose 00
378s PASS oathtool --verbose 00 328482
378s PASS oathtool --verbose --totp --now @0 00
378s PASS oathtool --verbose --totp=SHA256 --now @0 42
378s PASS oathtool --verbose --totp=SHA512 --now @0 00
378s PASS oathtool -v --hotp -c 9223372036854775808 DEADBEEF
378s PASS oathtool -v --hotp -c 18446744073709551615 DEADBEEF
378s PASS oathtool --base32 - STDIN=gr6d5br725s6vnckv4vlhlaore
378s PASS oathtool --base32 - - STDIN=gr6d5br725s6vnckv4vlhlaore 993210
378s PASS oathtool --base32 @/tmp/tmp.xt0BVijyoT
378s PASS oathtool --base32 @/tmp/tmp.xt0BVijyoT - STDIN=993210
378s PASS oathtool --base32 @/tmp/tmp.xt0BVijyoT @/tmp/tmp.FLAFjoDPAO
378s PASS oathtool --base32 @/tmp/tmp.xt0BVijyoT @/tmp/tmp.xt0BVijyoT
378s PASS oathtool --base32 XBK55CIOSR2TO6VUZX7KB2NJX2
378s rm -f /tmp/tmp.xt0BVijyoT /tmp/tmp.FLAFjoDPAO
378s autopkgtest [13:47:17]: test oathtool: -----------------------]
379s autopkgtest [13:47:18]: test oathtool: - - - - - - - - - - results - - - - - - - - - -
379s oathtool PASS
379s autopkgtest [13:47:18]: test pskctool: preparing testbed
379s Reading package lists...
379s Building dependency tree...
379s Reading state information...
380s Starting pkgProblemResolver with broken count: 0
380s Starting 2 pkgProblemResolver with broken count: 0
380s Done
380s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
382s autopkgtest [13:47:21]: test pskctool: [-----------------------
382s PASS pskctool --version
382s PASS pskctool
382s PASS pskctool -h
382s PASS pskctool --info pskctool/tests/tst_pskctool.sh
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/tst_pskctool.sh
382s PASS pskctool --info --strict pskctool/tests/pskc-invalid.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-figure2.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-figure3.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-figure4.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-figure5.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-figure10.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-all.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-ns.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/pskc-ocra.xml
382s PASS pskctool --info --quiet --debug --strict pskctool/tests/20120919-test001-4282.xml
382s PASS pskctool --validate --quiet --debug --strict pskctool/tests/tst_pskctool.sh
382s PASS pskctool --validate pskctool/tests/tst_pskctool.sh
382s PASS pskctool --validate pskctool/tests/pskc-invalid.xml
382s PASS pskctool --validate --quiet --debug --strict pskctool/tests/pskc-invalid.xml
382s PASS pskctool --validate pskctool/tests/pskc-figure2.xml
382s PASS pskctool --validate pskctool/tests/pskc-figure3.xml
382s PASS pskctool --validate pskctool/tests/pskc-figure4.xml
382s PASS pskctool --validate pskctool/tests/pskc-figure5.xml
382s PASS pskctool --validate pskctool/tests/pskc-figure10.xml
382s PASS pskctool --validate pskctool/tests/pskc-all.xml
382s PASS pskctool --validate pskctool/tests/pskc-ns.xml
382s PASS pskctool --validate pskctool/tests/pskc-ocra.xml
382s PASS pskctool --validate pskctool/tests/20120919-test001-4282.xml
383s autopkgtest [13:47:22]: test pskctool: -----------------------]
383s pskctool PASS
383s autopkgtest [13:47:22]: test pskctool: - - - - - - - - - - results - - - - - - - - - -
384s autopkgtest [13:47:23]: @@@@@@@@@@@@@@@@@@@@ summary
384s liboath PASS
384s libpskc PASS
384s oathtool PASS
384s pskctool PASS
389s nova [W] Using flock in prodstack6-arm64
389s Creating nova instance adt-plucky-arm64-oath-toolkit-20250315-134058-juju-7f2275-prod-proposed-migration-environment-15-4651a5f2-afc9-47bf-92c3-178515c3134a from image adt/ubuntu-plucky-arm64-server-20250315.img (UUID bd6e766c-b51f-4b53-86d6-23aa4d18f524)...
389s nova [W] Timed out waiting for f940b0c0-46bb-4211-a7f0-de81711d3fde to get deleted.