Changes to conform with API modifications
authorTheodore Tso <tytso@mit.edu>
Thu, 21 Feb 1991 11:41:54 +0000 (11:41 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 21 Feb 1991 11:41:54 +0000 (11:41 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1750 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/func-proto.h
src/include/krb5/los-proto.h
src/lib/krb5/keytab/read_servi.c

index 035badd345854ecf4b004cc6880627aa2ceac51e..12c7cdb41151854c23b1c9dc89106a5c6194d9dc 100644 (file)
@@ -63,7 +63,7 @@ krb5_error_code krb5_rd_req_simple
        PROTOTYPE((const krb5_data *,
                   krb5_const_principal,
                   const krb5_address *,
-                  krb5_tkt_authent * ));
+                  krb5_tkt_authent ** ));
 krb5_error_code krb5_mk_rep
        PROTOTYPE((const krb5_ap_rep_enc_part *,
                   const krb5_keyblock *,
@@ -71,19 +71,20 @@ krb5_error_code krb5_mk_rep
 krb5_error_code krb5_rd_rep
        PROTOTYPE((const krb5_data *,
                   const krb5_keyblock *,
-                  krb5_ap_rep_enc_part *));
+                  krb5_ap_rep_enc_part **));
 krb5_error_code krb5_mk_error
        PROTOTYPE((const krb5_error *,
                   krb5_data * ));
 krb5_error_code krb5_rd_error
        PROTOTYPE((const krb5_data *,
-                  krb5_error * ));
+                  krb5_error ** ));
 krb5_error_code krb5_rd_safe
        PROTOTYPE((const krb5_data *,
                   const krb5_keyblock *,
                   const krb5_address *,
                   const krb5_address *,
                   krb5_int32, krb5_int32,
+                  krb5_rcache,
                   krb5_data * ));
 krb5_error_code krb5_rd_priv
        PROTOTYPE((const krb5_data *,
@@ -92,6 +93,7 @@ krb5_error_code krb5_rd_priv
                   const krb5_address *,
                   krb5_int32, krb5_int32,
                   krb5_pointer,
+                  krb5_rcache,
                   krb5_data * ));
 krb5_error_code krb5_parse_name
        PROTOTYPE((const char *,
@@ -119,6 +121,9 @@ int krb5_fulladdr_order
        PROTOTYPE((const krb5_fulladdr *,
                   const krb5_fulladdr *));
 krb5_error_code krb5_copy_keyblock
+    PROTOTYPE((const krb5_keyblock *,
+              krb5_keyblock **));
+krb5_error_code krb5_copy_keyblock_contents
     PROTOTYPE((const krb5_keyblock *,
               krb5_keyblock *));
 krb5_error_code krb5_copy_creds
@@ -236,6 +241,8 @@ void krb5_free_pa_data
        PROTOTYPE((krb5_pa_data **));
 void krb5_free_ap_rep_enc_part
        PROTOTYPE((krb5_ap_rep_enc_part *));
+void krb5_free_tkt_authent
+       PROTOTYPE((krb5_tkt_authent *));
 
 #include <krb5/widen.h>
 
@@ -311,7 +318,7 @@ krb5_error_code krb5_rd_req
                                        krb5_keyblock ** ),
                   krb5_pointer,
                   krb5_rcache,
-                  krb5_tkt_authent * ));
+                  krb5_tkt_authent ** ));
 krb5_error_code krb5_rd_req_decoded
        PROTOTYPE((const krb5_ap_req *,
                   krb5_const_principal,
@@ -323,7 +330,7 @@ krb5_error_code krb5_rd_req_decoded
                                        krb5_keyblock ** ),
                   krb5_pointer,
                   krb5_rcache,
-                  krb5_tkt_authent * ));
+                  krb5_tkt_authent ** ));
 
 krb5_error_code krb5_kt_read_service_key
        PROTOTYPE((krb5_pointer,
index c85c7fc66e183871b0231a857f0a6f8f3dfb99d4..5e97429cabf7525240c5cc02e0db978a45429fe8 100644 (file)
@@ -61,8 +61,7 @@ krb5_error_code krb5_aname_to_localname
                   const int,
                   char * ));
 krb5_error_code krb5_get_default_realm
-       PROTOTYPE((const int,
-                  char * ));
+       PROTOTYPE(( char ** ));
 krb5_error_code krb5_get_host_realm
        PROTOTYPE((const char *,
                   char *** ));
index 7a39bc8bdf3b0b54c2fb648f41b40fc91e0d7cc9..67758b4365d2ff81ea6cc0528f2c41c443082030 100644 (file)
@@ -23,7 +23,6 @@ static char rcsid_krb5_kt_read_service_key_c[] =
 
 #include <krb5/ext-proto.h>
 
-/* XXX  Things that I need and don't know where to get yet */
 #define KSUCCESS 0
 
 krb5_error_code 
@@ -74,16 +73,7 @@ OLDDECLARG(krb5_keyblock **, key)
     if (kerror)
        return(kerror);
 
-    /* 
-     * This routine takes a krb5_keyblock **.   Should it?  I assume this
-     * means that it is supposed allocate the key and return it...
-     * XXX
-     */
-
-    if (!(*key = (krb5_keyblock *)malloc(sizeof(krb5_keyblock))))
-       return (ENOMEM);        /* XXX */
-
-    krb5_copy_keyblock(&entry.key, *key);
+    krb5_copy_keyblock(&entry.key, key);
 
     krb5_kt_free_entry(&entry);