From 6d719817e4dea48427fb66921d8a2515204fbcf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 22 Jul 2003 10:14:05 +0000 Subject: [PATCH] (krb5_cksumtype_valid): check is checksum type is a valid one git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12481 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index dabf27c70..2974e32ff 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -2698,6 +2698,14 @@ krb5_enctype_valid(krb5_context context, return _find_enctype(etype) != NULL; } +krb5_error_code +krb5_cksumtype_valid(krb5_context context, + krb5_cksumtype ctype) +{ + return _find_checksum(ctype) != NULL; +} + + /* if two enctypes have compatible keys */ krb5_boolean krb5_enctypes_compatible_keys(krb5_context context,