In the case where we get a DigestError back, save the error string and code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17935 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -404,6 +404,13 @@ krb5_digest_init_request(krb5_context context,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (irep.element == choice_DigestRepInner_error) {
|
||||||
|
krb5_set_error_string(context, "Digest init error: %s",
|
||||||
|
irep.u.error.reason);
|
||||||
|
ret = irep.u.error.code;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (irep.element != choice_DigestRepInner_initReply) {
|
if (irep.element != choice_DigestRepInner_initReply) {
|
||||||
krb5_set_error_string(context, "digest reply not an initReply");
|
krb5_set_error_string(context, "digest reply not an initReply");
|
||||||
ret = EINVAL;
|
ret = EINVAL;
|
||||||
@@ -655,6 +662,13 @@ krb5_digest_request(krb5_context context,
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (irep.element == choice_DigestRepInner_error) {
|
||||||
|
krb5_set_error_string(context, "Digest response error: %s",
|
||||||
|
irep.u.error.reason);
|
||||||
|
ret = irep.u.error.code;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (irep.element != choice_DigestRepInner_response) {
|
if (irep.element != choice_DigestRepInner_response) {
|
||||||
krb5_set_error_string(context, "digest reply not an DigestResponse");
|
krb5_set_error_string(context, "digest reply not an DigestResponse");
|
||||||
ret = EINVAL;
|
ret = EINVAL;
|
||||||
|
Reference in New Issue
Block a user