Skip to content

Commit

Permalink
Merge 469570a into 68d84cf
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRaad committed Mar 3, 2018
2 parents 68d84cf + 469570a commit b53fc66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/krb5.c
Expand Up @@ -85,7 +85,7 @@ krb5_decode(void *app_data, void *buf, int len,

enc.value = buf;
enc.length = len;
maj = gss_unseal(&min, *context, &enc, &dec, NULL, NULL);
maj = gss_unwrap(&min, *context, &enc, &dec, NULL, NULL);
if(maj != GSS_S_COMPLETE) {
if(len >= 4)
strcpy(buf, "599 ");
Expand Down Expand Up @@ -119,11 +119,11 @@ krb5_encode(void *app_data, const void *from, int length, int level, void **to)
int len;

/* NOTE that the cast is safe, neither of the krb5, gnu gss and heimdal
* libraries modify the input buffer in gss_seal()
* libraries modify the input buffer in gss_wrap()
*/
dec.value = (void *)from;
dec.length = length;
maj = gss_seal(&min, *context,
maj = gss_wrap(&min, *context,
level == PROT_PRIVATE,
GSS_C_QOP_DEFAULT,
&dec, &state, &enc);
Expand Down

0 comments on commit b53fc66

Please sign in to comment.