(krb5_checksum_is_keyed): only set extented error string when there is a context
(krb5_checksum_is_collision_proof): ditto git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12480 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1922,6 +1922,7 @@ krb5_checksum_is_keyed(krb5_context context,
|
|||||||
{
|
{
|
||||||
struct checksum_type *ct = _find_checksum(type);
|
struct checksum_type *ct = _find_checksum(type);
|
||||||
if(ct == NULL) {
|
if(ct == NULL) {
|
||||||
|
if (context)
|
||||||
krb5_set_error_string (context, "checksum type %d not supported",
|
krb5_set_error_string (context, "checksum type %d not supported",
|
||||||
type);
|
type);
|
||||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||||
@@ -1935,6 +1936,7 @@ krb5_checksum_is_collision_proof(krb5_context context,
|
|||||||
{
|
{
|
||||||
struct checksum_type *ct = _find_checksum(type);
|
struct checksum_type *ct = _find_checksum(type);
|
||||||
if(ct == NULL) {
|
if(ct == NULL) {
|
||||||
|
if (context)
|
||||||
krb5_set_error_string (context, "checksum type %d not supported",
|
krb5_set_error_string (context, "checksum type %d not supported",
|
||||||
type);
|
type);
|
||||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||||
|
Reference in New Issue
Block a user