From d20ddd3b522af6909e651db8395cd0db44071010 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sat, 6 Sep 2003 16:09:46 +0000 Subject: [PATCH] Fix API. --- examples/server.c | 10 +++++----- lib/authenticator.c | 2 +- lib/keys.c | 2 +- lib/tkt.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/server.c b/examples/server.c index 5127596b..668e62ac 100644 --- a/examples/server.c +++ b/examples/server.c @@ -46,7 +46,7 @@ doit (Shishi * h, Shishi_ap * ap, int verbose) if (res != SHISHI_OK) { fprintf (stderr, "Could not read SAFE:\n%s\n%s\n", - shishi_strerror (res), shishi_strerror_details (h)); + shishi_strerror (res), shishi_error (h)); return 1; } @@ -54,7 +54,7 @@ doit (Shishi * h, Shishi_ap * ap, int verbose) if (res != SHISHI_OK) { fprintf (stderr, "Could not create SAFE:\n%s\n%s\n", - shishi_strerror (res), shishi_strerror_details (h)); + shishi_strerror (res), shishi_error (h)); return 1; } @@ -64,7 +64,7 @@ doit (Shishi * h, Shishi_ap * ap, int verbose) if (res != SHISHI_OK) { fprintf (stderr, "Could not verify SAFE:\n%s\n%s\n", - shishi_strerror (res), shishi_strerror_details (h)); + shishi_strerror (res), shishi_error (h)); return 1; } @@ -74,7 +74,7 @@ doit (Shishi * h, Shishi_ap * ap, int verbose) if (res != SHISHI_OK) { fprintf (stderr, "Could not extract user data:\n%s\n%s\n", - shishi_strerror (res), shishi_strerror_details (h)); + shishi_strerror (res), shishi_error (h)); return 1; } userdata[userdatalen] = '\0'; @@ -109,7 +109,7 @@ auth (Shishi * h, int verbose, const char *cname, const char *sname) key = shishi_hostkeys_for_server (h, sname); if (!key) { - printf ("could not find key: %s\n", shishi_strerror_details (h)); + printf ("could not find key: %s\n", shishi_error (h)); return NULL; } diff --git a/lib/authenticator.c b/lib/authenticator.c index d5d1b614..49fe494e 100644 --- a/lib/authenticator.c +++ b/lib/authenticator.c @@ -864,7 +864,7 @@ shishi_authenticator_add_random_subkey (Shishi * handle, shishi_key_value (subkey), shishi_key_length (subkey)); - shishi_key_done (&subkey); + shishi_key_done (subkey); return res; } diff --git a/lib/keys.c b/lib/keys.c index 00b2f733..721ba8f2 100644 --- a/lib/keys.c +++ b/lib/keys.c @@ -71,7 +71,7 @@ shishi_keys_for_serverrealm_in_file (Shishi * handle, strcmp (server, shishi_key_principal (key)) == 0) break; - shishi_key_done (&key); + shishi_key_done (key); } res = fclose (fh); diff --git a/lib/tkt.c b/lib/tkt.c index 7296dd7a..1dd763ad 100644 --- a/lib/tkt.c +++ b/lib/tkt.c @@ -407,7 +407,7 @@ void shishi_tkt_done (Shishi_tkt * tkt) { if (tkt->key) - shishi_key_done (&tkt->key); + shishi_key_done (tkt->key); free (tkt); } -- 2.11.4.GIT