need to use enc_data converters now
authorJohn Kohl <jtkohl@mit.edu>
Wed, 10 Oct 1990 11:17:47 +0000 (11:17 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 10 Oct 1990 11:17:47 +0000 (11:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1205 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/aprq2kaprq.c
src/lib/krb5/asn.1/kaprq2aprq.c

index 49bb90c6bcf11cd370e3871a81c5393dcc88e203..22985da02811784e488c77db1e9efb597d56efbf 100644 (file)
@@ -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);
index 6fde70352526858d77ea923889a7dd735cb96708..798ca81a4b247a503059a7fc0eab87de036bf4d0 100644 (file)
@@ -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);