urldata: Capitalize enum protect_level values.

This makes it easier to spot the enum values from the variables.
Removed some unneeded DEBUGASSERT added in the previous commit.
This commit is contained in:
Julien Chaffraix
2010-11-13 14:42:34 -08:00
parent 8d59d69449
commit add5766dd4
7 changed files with 49 additions and 50 deletions

View File

@@ -88,7 +88,7 @@ static int
krb5_check_prot(void *app_data, int level)
{
(void)app_data; /* unused */
if(level == prot_confidential)
if(level == PROT_CONFIDENTIAL)
return -1;
return 0;
}
@@ -150,7 +150,7 @@ krb5_encode(void *app_data, const void *from, int length, int level, void **to,
dec.value = (void*)from;
dec.length = length;
maj = gss_seal(&min, *context,
level == prot_private,
level == PROT_PRIVATE,
GSS_C_QOP_DEFAULT,
&dec, &state, &enc);