Oops, HDB_F_DECRYPT isn't critical; making it so breaks tests.
This commit is contained in:
@@ -156,7 +156,7 @@ _hdb_fetch_kvno(krb5_context context, HDB *db, krb5_const_principal principal,
|
|||||||
}
|
}
|
||||||
krb5_data_free(&value);
|
krb5_data_free(&value);
|
||||||
if (!db->hdb_master_key_set && (flags & HDB_F_DECRYPT))
|
if (!db->hdb_master_key_set && (flags & HDB_F_DECRYPT))
|
||||||
return HDB_ERR_NO_MKEY;
|
return 0; /* HDB_F_DECRYPT isn't critical, oddly enough */
|
||||||
if (db->hdb_master_key_set && (flags & HDB_F_DECRYPT) &&
|
if (db->hdb_master_key_set && (flags & HDB_F_DECRYPT) &&
|
||||||
(flags & HDB_F_ALL_KVNOS)) {
|
(flags & HDB_F_ALL_KVNOS)) {
|
||||||
/* Decrypt the current keys */
|
/* Decrypt the current keys */
|
||||||
@@ -194,7 +194,7 @@ _hdb_fetch_kvno(krb5_context context, HDB *db, krb5_const_principal principal,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static krb5_error_code
|
static krb5_error_code
|
||||||
|
Reference in New Issue
Block a user