From 28732da72ffec9daf65ca0c7350582a7cef00771 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 10 Oct 1990 11:17:47 +0000 Subject: [PATCH] need to use enc_data converters now git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1205 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/aprq2kaprq.c | 4 ++-- src/lib/krb5/asn.1/kaprq2aprq.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/asn.1/aprq2kaprq.c b/src/lib/krb5/asn.1/aprq2kaprq.c index 49bb90c6b..22985da02 100644 --- a/src/lib/krb5/asn.1/aprq2kaprq.c +++ b/src/lib/krb5/asn.1/aprq2kaprq.c @@ -34,7 +34,7 @@ const register struct type_KRB5_AP__REQ *val; register int *error; { register krb5_ap_req *retval; - krb5_data *temp; + krb5_enc_data *temp; retval = (krb5_ap_req *)xmalloc(sizeof(*retval)); if (!retval) { @@ -50,7 +50,7 @@ register int *error; krb5_free_ap_req(retval); return(0); } - temp = qbuf2krb5_data(val->authenticator, error); + temp = KRB5_EncryptedData2krb5_enc_data(val->authenticator, error); if (temp) { retval->authenticator = *temp; xfree(temp); diff --git a/src/lib/krb5/asn.1/kaprq2aprq.c b/src/lib/krb5/asn.1/kaprq2aprq.c index 6fde70352..798ca81a4 100644 --- a/src/lib/krb5/asn.1/kaprq2aprq.c +++ b/src/lib/krb5/asn.1/kaprq2aprq.c @@ -56,10 +56,11 @@ register int *error; free_KRB5_AP__REQ(retval); return(0); } - retval->authenticator = krb5_data2qbuf(&(val->authenticator)); + retval->authenticator = + krb5_enc_data2KRB5_EncryptedData(&(val->authenticator), + error); if (!retval->authenticator) { free_KRB5_AP__REQ(retval); - *error = ENOMEM; return(0); } return(retval); -- 2.26.2