X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_crypto_rsa.c;h=859d476b9a9573bb8db177b266b101962b02a9ef;hb=8226d9807819dbbc4b05751f4cdd09603832367d;hp=b3663662e84b9e771cfc6e73a8bccfd00a8d221d;hpb=652e89b59ed2207c2c12172fdabcd6e659995c81;p=oweals%2Fgnunet.git diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c index b3663662e..859d476b9 100644 --- a/src/util/test_crypto_rsa.c +++ b/src/util/test_crypto_rsa.c @@ -4,7 +4,7 @@ GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your + by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but @@ -228,7 +228,7 @@ testSignVerify () } if (GNUNET_SYSERR != GNUNET_CRYPTO_rsa_verify - (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_TCP_PING, &purp, &sig, &pkey)) + (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, &purp, &sig, &pkey)) { printf ("GNUNET_CRYPTO_rsa_verify failed to fail!\n"); ok = GNUNET_SYSERR; @@ -273,8 +273,8 @@ testSignPerformance () } } printf ("%d RSA sign operations %llu ms\n", ITER, - (unsigned long long) GNUNET_TIME_absolute_get_duration (start). - value); + (unsigned long long) + GNUNET_TIME_absolute_get_duration (start).value); GNUNET_CRYPTO_rsa_key_free (hostkey); return ok; }