From 9ab0a5821fe7456fcce7756bf56b27560a0b1df0 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 18 May 2003 00:04:33 +0000 Subject: [PATCH] Fix. --- lib/authenticator.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/authenticator.c b/lib/authenticator.c index a14f8dcc..91c27ec1 100644 --- a/lib/authenticator.c +++ b/lib/authenticator.c @@ -506,19 +506,15 @@ shishi_authenticator_set_cksum (Shishi * handle, Shishi_asn1 authenticator, int cksumtype, char *cksum, int cksumlen) { - char format[BUFSIZ]; int res; - sprintf (format, "%i", cksumtype); - res = - shishi_asn1_write (handle, authenticator, "cksum.cksumtype", - format, 0); + res = shishi_asn1_write_integer (handle, authenticator, + "cksum.cksumtype", cksumtype); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; - res = - shishi_asn1_write (handle, authenticator, "cksum.checksum", - cksum, cksumlen); + res = shishi_asn1_write (handle, authenticator, "cksum.checksum", + cksum, cksumlen); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; -- 2.11.4.GIT