Pass down hx509_peer_info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19132 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -81,6 +81,7 @@ struct krb5_pk_init_ctx_data { | |||||||
|     DH *dh; |     DH *dh; | ||||||
|     krb5_data *clientDHNonce; |     krb5_data *clientDHNonce; | ||||||
|     struct krb5_dh_moduli **m; |     struct krb5_dh_moduli **m; | ||||||
|  |     hx509_peer_info peer; | ||||||
|     int require_binding; |     int require_binding; | ||||||
|     int require_eku; |     int require_eku; | ||||||
|     int require_krbtgt_otherName; |     int require_krbtgt_otherName; | ||||||
| @@ -130,6 +131,7 @@ _krb5_pk_create_sign(krb5_context context, | |||||||
| 		     const heim_oid *eContentType, | 		     const heim_oid *eContentType, | ||||||
| 		     krb5_data *eContent, | 		     krb5_data *eContent, | ||||||
| 		     struct krb5_pk_identity *id, | 		     struct krb5_pk_identity *id, | ||||||
|  | 		     hx509_peer_info peer, | ||||||
| 		     krb5_data *sd_data) | 		     krb5_data *sd_data) | ||||||
| { | { | ||||||
|     hx509_cert cert; |     hx509_cert cert; | ||||||
| @@ -154,7 +156,7 @@ _krb5_pk_create_sign(krb5_context context, | |||||||
| 				    eContent->length, | 				    eContent->length, | ||||||
| 				    NULL, | 				    NULL, | ||||||
| 				    cert, | 				    cert, | ||||||
| 				    NULL, | 				    peer, | ||||||
| 				    NULL, | 				    NULL, | ||||||
| 				    id->certs, | 				    id->certs, | ||||||
| 				    sd_data); | 				    sd_data); | ||||||
| @@ -511,7 +513,8 @@ pk_mk_padata(krb5_context context, | |||||||
|     ret = _krb5_pk_create_sign(context, |     ret = _krb5_pk_create_sign(context, | ||||||
| 			       oid, | 			       oid, | ||||||
| 			       &buf, | 			       &buf, | ||||||
| 			       ctx->id,  | 			       ctx->id, | ||||||
|  | 			       ctx->peer, | ||||||
| 			       &sd_buf); | 			       &sd_buf); | ||||||
|     krb5_data_free(&buf); |     krb5_data_free(&buf); | ||||||
|     if (ret) |     if (ret) | ||||||
| @@ -1823,7 +1826,7 @@ krb5_get_init_creds_opt_set_pkinit(krb5_context context, | |||||||
|     opt->opt_private->pk_init_ctx->require_binding = 0; |     opt->opt_private->pk_init_ctx->require_binding = 0; | ||||||
|     opt->opt_private->pk_init_ctx->require_eku = 1; |     opt->opt_private->pk_init_ctx->require_eku = 1; | ||||||
|     opt->opt_private->pk_init_ctx->require_krbtgt_otherName = 1; |     opt->opt_private->pk_init_ctx->require_krbtgt_otherName = 1; | ||||||
|  |     opt->opt_private->pk_init_ctx->peer = NULL; | ||||||
|  |  | ||||||
|     /* XXX implement krb5_appdefault_strings  */ |     /* XXX implement krb5_appdefault_strings  */ | ||||||
|     if (pool == NULL) |     if (pool == NULL) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand