Prepare to pass down a krb5_krbhst_info into the pre-auth mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16152 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -1014,10 +1014,10 @@ pa_data_to_md_pkinit(krb5_context context, | |||||||
| 	return 0; | 	return 0; | ||||||
| #ifdef PKINIT | #ifdef PKINIT | ||||||
|     return _krb5_pk_mk_padata(context, |     return _krb5_pk_mk_padata(context, | ||||||
| 			      ctx->pk_init_ctx, | 			     ctx->pk_init_ctx, | ||||||
| 			      &a->req_body, | 			     &a->req_body, | ||||||
| 			      ctx->pk_nonce, | 			     ctx->pk_nonce, | ||||||
| 			      md); | 			     md); | ||||||
| #else | #else | ||||||
|     krb5_set_error_string(context, "no support for PKINIT compiled in"); |     krb5_set_error_string(context, "no support for PKINIT compiled in"); | ||||||
|     return EINVAL; |     return EINVAL; | ||||||
| @@ -1114,6 +1114,7 @@ process_pa_data_to_key(krb5_context context, | |||||||
| 		       krb5_creds *creds, | 		       krb5_creds *creds, | ||||||
| 		       AS_REQ *a, | 		       AS_REQ *a, | ||||||
| 		       krb5_kdc_rep *rep, | 		       krb5_kdc_rep *rep, | ||||||
|  | 		       const krb5_krbhst_info *hi, | ||||||
| 		       krb5_keyblock **key) | 		       krb5_keyblock **key) | ||||||
| { | { | ||||||
|     struct pa_info_data paid, *ppaid = NULL; |     struct pa_info_data paid, *ppaid = NULL; | ||||||
| @@ -1158,6 +1159,7 @@ process_pa_data_to_key(krb5_context context, | |||||||
| 	ret = _krb5_pk_rd_pa_reply(context, | 	ret = _krb5_pk_rd_pa_reply(context, | ||||||
| 				   ctx->pk_init_ctx, | 				   ctx->pk_init_ctx, | ||||||
| 				   etype, | 				   etype, | ||||||
|  | 				   hi, | ||||||
| 				   ctx->pk_nonce, | 				   ctx->pk_nonce, | ||||||
| 				   &ctx->req_buffer, | 				   &ctx->req_buffer, | ||||||
| 				   pa, | 				   pa, | ||||||
| @@ -1194,6 +1196,8 @@ init_cred_loop(krb5_context context, | |||||||
|     size_t len; |     size_t len; | ||||||
|     size_t size; |     size_t size; | ||||||
|     int send_to_kdc_flags = 0; |     int send_to_kdc_flags = 0; | ||||||
|  |     krb5_krbhst_info *hi = NULL; | ||||||
|  |  | ||||||
|  |  | ||||||
|     memset(&md, 0, sizeof(md)); |     memset(&md, 0, sizeof(md)); | ||||||
|     memset(&rep, 0, sizeof(rep)); |     memset(&rep, 0, sizeof(rep)); | ||||||
| @@ -1321,7 +1325,7 @@ init_cred_loop(krb5_context context, | |||||||
| 	krb5_keyblock *key = NULL; | 	krb5_keyblock *key = NULL; | ||||||
|  |  | ||||||
| 	ret = process_pa_data_to_key(context, ctx, creds,  | 	ret = process_pa_data_to_key(context, ctx, creds,  | ||||||
| 				     &ctx->as_req, &rep, &key); | 				     &ctx->as_req, &rep, hi, &key); | ||||||
| 	if (ret) | 	if (ret) | ||||||
| 	    goto out; | 	    goto out; | ||||||
| 	 | 	 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand