summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-09-21 18:40:38 +0000
committerSam Hartman <hartmans@mit.edu>2011-09-21 18:40:38 +0000
commitd168c25d80fb6fe2d4c272252d2fb41a2a9bb54e (patch)
tree456aff2dd1c750fbf49c02f138f448f62a8c5606 /src
parent5a263d5a991b611599e1ae7f562db4ddaade74c6 (diff)
downloadkrb5-d168c25d80fb6fe2d4c272252d2fb41a2a9bb54e.tar.gz
krb5-d168c25d80fb6fe2d4c272252d2fb41a2a9bb54e.tar.xz
krb5-d168c25d80fb6fe2d4c272252d2fb41a2a9bb54e.zip
fix pkinit warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25221 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/plugins/preauth/pkinit/pkinit_crypto.h4
-rw-r--r--src/plugins/preauth/pkinit/pkinit_crypto_openssl.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_crypto.h b/src/plugins/preauth/pkinit/pkinit_crypto.h
index 31e01f9dc..7da5cb02f 100644
--- a/src/plugins/preauth/pkinit/pkinit_crypto.h
+++ b/src/plugins/preauth/pkinit/pkinit_crypto.h
@@ -635,8 +635,8 @@ krb5_error_code
pkinit_alg_agility_kdf(krb5_context context,
krb5_octet_data *secret,
krb5_octet_data *alg_oid,
- krb5_principal party_u_info,
- krb5_principal party_v_info,
+ krb5_const_principal party_u_info,
+ krb5_const_principal party_v_info,
krb5_enctype enctype,
krb5_octet_data *as_req,
krb5_octet_data *pk_as_rep,
diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
index 013f8cbe0..6f39f36bc 100644
--- a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
+++ b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
@@ -2225,8 +2225,8 @@ krb5_error_code
pkinit_alg_agility_kdf(krb5_context context,
krb5_octet_data *secret,
krb5_octet_data *alg_oid,
- krb5_principal party_u_info,
- krb5_principal party_v_info,
+ krb5_const_principal party_u_info,
+ krb5_const_principal party_v_info,
krb5_enctype enctype,
krb5_octet_data *as_req,
krb5_octet_data *pk_as_rep,
@@ -2302,8 +2302,8 @@ pkinit_alg_agility_kdf(krb5_context context,
alg_id.algorithm = *alg_oid; /*alias*/
other_info_fields.algorithm_identifier = alg_id;
- other_info_fields.party_u_info = party_u_info;
- other_info_fields.party_v_info = party_v_info;
+ other_info_fields.party_u_info = (krb5_principal) party_u_info;
+ other_info_fields.party_v_info = (krb5_principal) party_v_info;
other_info_fields.supp_pub_info = *supp_pub_info;
if (0 != (retval = encode_krb5_sp80056a_other_info(&other_info_fields, &other_info)))
goto cleanup;
@@ -4885,7 +4885,7 @@ crypto_cert_get_matching_data(krb5_context context,
pkinit_cert_matching_data *md;
krb5_principal *pkinit_sans =NULL, *upn_sans = NULL;
struct _pkinit_cert_data *cd = (struct _pkinit_cert_data *)ch;
- int i, j;
+ unsigned int i, j;
char buf[DN_BUF_LEN];
unsigned int bufsize = sizeof(buf);