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, | ||||
| 			      &size); | ||||
|  | ||||
|     if (ret) | ||||
|     if (ret) { | ||||
| 	krb5_set_error_string(context, "pkinit - " | ||||
| 			      "failed to decode KDC DH Key Info"); | ||||
| 	goto out; | ||||
|     } | ||||
|  | ||||
|     if (kdc_dh_info.nonce != nonce) { | ||||
| 	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, | ||||
| 				  &rep, | ||||
| 				  &size); | ||||
| 	if (ret) | ||||
| 	if (ret) { | ||||
| 	    krb5_set_error_string(context, "Failed to decode pkinit AS rep"); | ||||
| 	    return ret; | ||||
| 	} | ||||
|  | ||||
| 	switch (rep.element) { | ||||
| 	case choice_PA_PK_AS_REP_dhInfo: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand