change around to standard calling conventions
authorJohn Kohl <jtkohl@mit.edu>
Tue, 23 Jan 1990 14:59:50 +0000 (14:59 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 23 Jan 1990 14:59:50 +0000 (14:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@169 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/asn.1/encode.h

index 02ffd3653a677424db550c37f6b83fe46d3c34be..8e71b9e0b730f3019ee829bcba48a5ebeccaadae 100644 (file)
 #ifndef __KRB5_ENCODE_DEFS__
 #define __KRB5_ENCODE_DEFS__
 
-#define encode_krb5_authenticator(pauth, error) \
-    encode_generic(pauth, error, \
+#define encode_krb5_authenticator(pauth, output) \
+    encode_generic(pauth,  output, \
                   encode_KRB5_Authenticator, \
                   krb5_authenticator2KRB5_Authenticator, \
                   free_KRB5_Authenticator)
-#define decode_krb5_authenticator(pauth, error) \
-    (krb5_authenticator *) \
-    decode_generic(pauth, error, \
+#define decode_krb5_authenticator(pauth, output) \
+    decode_generic(pauth, (krb5_pointer *) output, \
                   decode_KRB5_Authenticator, \
                   KRB5_Authenticator2krb5_authenticator, \
                   free_KRB5_Authenticator)
                                                
-#define encode_krb5_ticket(ptick, error) \
-    encode_generic(ptick, error, \
+#define encode_krb5_ticket(ptick, output) \
+    encode_generic(ptick,  output, \
                   encode_KRB5_Ticket, \
                   krb5_ticket2KRB5_Ticket, \
                   free_KRB5_Ticket)
-#define decode_krb5_ticket(ptick, error) \
-    (krb5_ticket *) \
-    decode_generic(ptick, error, \
+#define decode_krb5_ticket(ptick, output) \
+    decode_generic(ptick, (krb5_pointer *) output, \
                   decode_KRB5_Ticket, \
                   KRB5_Ticket2krb5_ticket, \
                   free_KRB5_Ticket)
 
-#define encode_krb5_as_req(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_as_req(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_AS__REQ, \
                   krb5_as_req2KRB5_AS__REQ, \
                   free_KRB5_AS__REQ)
-#define decode_krb5_as_req(req, error) \
-    (krb5_as_req *) \
-    decode_generic(req, error, \
+#define decode_krb5_as_req(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_AS__REQ, \
                   KRB5_AS__REQ2krb5_as_req, \
                   free_KRB5_AS__REQ)
 
-#define encode_krb5_as_rep(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_as_rep(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_KDC__REP, \
                   krb5_as_rep2KRB5_KDC__REP, \
                   free_KRB5_KDC__REP)
-#define decode_krb5_as_rep(req, error) \
-    (krb5_kdc_rep *) \
-    decode_generic(req, error, \
+#define decode_krb5_as_rep(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_KDC__REP, \
                   KRB5_KDC__REP2krb5_as_rep, \
                   free_KRB5_KDC__REP)
 
-#define encode_krb5_tgs_rep(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_enc_kdc_rep_part(req, output) \
+    encode_generic(req, output, \
+                  encode_KRB5_EncKDCRepPart, \
+                  krb5_enc_kdc_rep_part2KRB5_EncKDCRepPart, \
+                  free_KRB5_EncKDCRepPart)
+#define decode_krb5_enc_kdc_rep_part(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
+                  decode_KRB5_EncKDCRepPart, \
+                  KRB5_EncKDCRepPart2krb5_enc_kdc_rep_part, \
+                  free_KRB5_EncKDCRepPart)
+
+#define encode_krb5_tgs_rep(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_KDC__REP, \
                   krb5_tgs_rep2KRB5_KDC__REP, \
                   free_KRB5_KDC__REP)
-#define decode_krb5_tgs_rep(req, error) \
-    (krb5_kdc_rep *) \
-    decode_generic(req, error, \
+#define decode_krb5_tgs_rep(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_KDC__REP, \
                   KRB5_KDC__REP2krb5_tgs_rep, \
                   free_KRB5_KDC__REP)
 
 
-#define encode_krb5_ap_req(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_ap_req(req, output) \
+    encode_generic(req,  output, \
                   encode_KRB5_AP__REQ, \
                   krb5_ap_req2KRB5_AP__REQ, \
                   free_KRB5_AP__REQ)
-#define decode_krb5_ap_req(req, error) \
-    (krb5_ap_req *) \
-    decode_generic(req, error, \
+#define decode_krb5_ap_req(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_AP__REQ, \
                   KRB5_AP__REQ2krb5_ap_req, \
                   free_KRB5_AP__REQ)
 
-#define encode_krb5_ap_rep(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_ap_rep(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_AP__REP, \
                   krb5_ap_rep2KRB5_AP__REP, \
                   free_KRB5_AP__REP)
-#define decode_krb5_ap_rep(req, error) \
-    (krb5_ap_rep *) \
-    decode_generic(req, error, \
+#define decode_krb5_ap_rep(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_AP__REP, \
                   KRB5_AP__REP2krb5_ap_rep, \
                   free_KRB5_AP__REP)
 
-#define encode_krb5_tgs_req(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_tgs_req(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_TGS__REQ, \
                   krb5_tgs_req2KRB5_TGS__REQ, \
                   free_KRB5_TGS__REQ)
-#define decode_krb5_tgs_req(req, error) \
-    (krb5_tgs_req *) \
-    decode_generic(req, error, \
+#define decode_krb5_tgs_req(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_TGS__REQ, \
                   KRB5_TGS__REQ2krb5_tgs_req, \
                   free_KRB5_TGS__REQ)
 
-#define encode_krb5_safe(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_safe(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_KRB__SAFE, \
                   krb5_safe2KRB5_KRB__SAFE, \
                   free_KRB5_KRB__SAFE)
-#define decode_krb5_safe(req, error) \
-    (krb5_safe *) \
-    decode_generic(req, error, \
+#define decode_krb5_safe(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_KRB__SAFE, \
                   KRB5_KRB__SAFE2krb5_safe, \
                   free_KRB5_KRB__SAFE)
 
-#define encode_krb5_priv(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_priv(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_KRB__PRIV, \
                   krb5_priv2KRB5_KRB__PRIV, \
                   free_KRB5_KRB__PRIV)
-#define decode_krb5_priv(req, error) \
-    (krb5_priv *) \
-    decode_generic(req, error, \
+#define decode_krb5_priv(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_KRB__PRIV, \
                   KRB5_KRB__PRIV2krb5_priv, \
                   free_KRB5_KRB__PRIV)
 
-#define encode_krb5_error(req, error) \
-    encode_generic(req, error, \
+#define encode_krb5_error(req, output) \
+    encode_generic(req, output, \
                   encode_KRB5_KRB__ERROR, \
                   krb5_error2KRB5_KRB__ERROR, \
                   free_KRB5_KRB__ERROR)
-#define decode_krb5_error(req, error) \
-    (krb5_error *) \
-    decode_generic(req, error, \
+#define decode_krb5_error(req, output) \
+    decode_generic(req, (krb5_pointer *) output, \
                   decode_KRB5_KRB__ERROR, \
                   KRB5_KRB__ERROR2krb5_error, \
                   free_KRB5_KRB__ERROR)