Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15920 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
12
kdc/pkinit.c
12
kdc/pkinit.c
@@ -947,7 +947,7 @@ pk_mk_pa_reply_enckey(krb5_context context,
|
|||||||
free_ReplyKeyPack_19(&kp);
|
free_ReplyKeyPack_19(&kp);
|
||||||
}
|
}
|
||||||
case PKINIT_COMPAT_27: {
|
case PKINIT_COMPAT_27: {
|
||||||
krb5_crypto crypto;
|
krb5_crypto ascrypto;
|
||||||
ReplyKeyPack kp;
|
ReplyKeyPack kp;
|
||||||
memset(&kp, 0, sizeof(kp));
|
memset(&kp, 0, sizeof(kp));
|
||||||
|
|
||||||
@@ -957,21 +957,21 @@ pk_mk_pa_reply_enckey(krb5_context context,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = krb5_crypto_init(context, reply_key, 0, &crypto);
|
ret = krb5_crypto_init(context, reply_key, 0, &ascrypto);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
krb5_clear_error_string(context);
|
krb5_clear_error_string(context);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = krb5_create_checksum(context, crypto, 6,
|
ret = krb5_create_checksum(context, ascrypto, 6, 0,
|
||||||
req_buffer.data, req_buffer.length,
|
req_buffer->data, req_buffer->length,
|
||||||
&kp.asChecksum);
|
&kp.asChecksum);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
krb5_clear_error_string(context);
|
krb5_clear_error_string(context);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = krb5_crypto_destroy(context, crypto);
|
ret = krb5_crypto_destroy(context, ascrypto);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
krb5_clear_error_string(context);
|
krb5_clear_error_string(context);
|
||||||
goto out;
|
goto out;
|
||||||
@@ -1314,6 +1314,7 @@ _kdc_pk_mk_pa_reply(krb5_context context,
|
|||||||
ret = pk_mk_pa_reply_enckey(context,
|
ret = pk_mk_pa_reply_enckey(context,
|
||||||
client_params,
|
client_params,
|
||||||
req,
|
req,
|
||||||
|
req_buffer,
|
||||||
&client_params->reply_key,
|
&client_params->reply_key,
|
||||||
&rep.u.encKeyPack);
|
&rep.u.encKeyPack);
|
||||||
} else {
|
} else {
|
||||||
@@ -1366,6 +1367,7 @@ _kdc_pk_mk_pa_reply(krb5_context context,
|
|||||||
ret = pk_mk_pa_reply_enckey(context,
|
ret = pk_mk_pa_reply_enckey(context,
|
||||||
client_params,
|
client_params,
|
||||||
req,
|
req,
|
||||||
|
req_buffer,
|
||||||
&client_params->reply_key,
|
&client_params->reply_key,
|
||||||
&info);
|
&info);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Reference in New Issue
Block a user