Set error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20303 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1122,8 +1122,11 @@ pk_rd_pa_reply_dh(krb5_context context,
|
|||||||
&kdc_dh_info,
|
&kdc_dh_info,
|
||||||
&size);
|
&size);
|
||||||
|
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
krb5_set_error_string(context, "pkinit - "
|
||||||
|
"failed to decode KDC DH Key Info");
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (kdc_dh_info.nonce != nonce) {
|
if (kdc_dh_info.nonce != nonce) {
|
||||||
krb5_set_error_string(context, "PKINIT: DH nonce is wrong");
|
krb5_set_error_string(context, "PKINIT: DH nonce is wrong");
|
||||||
@@ -1264,8 +1267,10 @@ _krb5_pk_rd_pa_reply(krb5_context context,
|
|||||||
pa->padata_value.length,
|
pa->padata_value.length,
|
||||||
&rep,
|
&rep,
|
||||||
&size);
|
&size);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
krb5_set_error_string(context, "Failed to decode pkinit AS rep");
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
switch (rep.element) {
|
switch (rep.element) {
|
||||||
case choice_PA_PK_AS_REP_dhInfo:
|
case choice_PA_PK_AS_REP_dhInfo:
|
||||||
|
Reference in New Issue
Block a user