Sandia changes to support password generation
authorTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:16:14 +0000 (23:16 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:16:14 +0000 (23:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2393 dc483132-0cff-0310-8789-dd5450dbe970

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

index ff13105b985dae0f77eb99c9ba93fd742547fe07..57fbb516a8f92b6c7455e842cfd25117f29dba76 100644 (file)
@@ -112,6 +112,10 @@ struct type_KRB5_AP__REQ *krb5_ap_req2KRB5_AP__REQ
 struct type_KRB5_EncAPRepPart *krb5_ap_rep_enc_part2KRB5_EncAPRepPart
        PROTOTYPE((const krb5_ap_rep_enc_part *, int *));
 
+/* kasrp2kdcr.c */
+struct type_KRB5_AS__REP *krb5_as_rep2KRB5_KDC__REP
+       PROTOTYPE((const krb5_kdc_rep *, int *));
+
 /* kauth2auth.c */
 struct type_KRB5_Authenticator *krb5_authenticator2KRB5_Authenticator
        PROTOTYPE((const krb5_authenticator *, int *));
@@ -120,6 +124,10 @@ struct type_KRB5_Authenticator *krb5_authenticator2KRB5_Authenticator
 struct type_KRB5_Checksum *krb5_checksum2KRB5_Checksum
        PROTOTYPE((const krb5_checksum *, int *));
 
+/* kdcr2kasrp.c */
+krb5_kdc_rep *KRB5_KDC__REP2krb5_as_rep
+       PROTOTYPE((const struct type_KRB5_AS__REP *, int *));
+
 /* kdcr2kkdcr.c */
 krb5_kdc_rep *KRB5_KDC__REP2krb5_kdc_rep
        PROTOTYPE((const struct type_KRB5_TGS__REP *, int *));
@@ -164,6 +172,16 @@ struct type_KRB5_PrincipalName *krb5_principal2KRB5_PrincipalName
 struct type_KRB5_KRB__PRIV *krb5_priv2KRB5_KRB__PRIV
        PROTOTYPE((const krb5_priv *, int *));
 
+/* Sandia Passwd Utilities */
+/* kpwds2pwds.c */
+struct type_KRB5_PasswdData *krb5_pwd_data2KRB5_PWD__DATA
+       PROTOTYPE((krb5_pwd_data const *, int *));
+
+/* kpwd2pwd.c */
+struct type_KRB5_PasswdSequence *krb5_pwd_seq2KRB5_PWD__SEQ
+       PROTOTYPE((const passwd_phrase_element *, int *));
+
+
 /* ksafe2safe.c */
 struct type_KRB5_KRB__SAFE *krb5_safe2KRB5_KRB__SAFE
        PROTOTYPE((const krb5_safe *, int *));
@@ -198,6 +216,16 @@ krb5_principal KRB5_PrincipalName2krb5_principal
 krb5_priv *KRB5_KRB__PRIV2krb5_priv
        PROTOTYPE((const struct type_KRB5_KRB__PRIV *, int *));
 
+/* Sandia passwd utilities */
+/* pwds2kpwds.c */
+krb5_pwd_data *KRB5_PWD__DATA2krb5_pwd_data
+       PROTOTYPE((const struct type_KRB5_PasswdData *, int *));
+
+/* pwd2kpwd.c */
+ passwd_phrase_element *KRB5_PWD__SEQ2krb5_pwd_seq
+       PROTOTYPE((const register struct type_KRB5_PasswdSequence *, int *));
+
+
 /* qbuf2data.c */
 krb5_data *qbuf2krb5_data
        PROTOTYPE((const struct qbuf *, int *));
@@ -227,16 +255,20 @@ krb5_flags KRB5_TicketFlags2krb5_flags
        PROTOTYPE((const struct type_KRB5_TicketFlags *,int *));
 
 /* kpadt2padt.c */
+/*
 struct type_KRB5_PA__DATA *krb5_pa_data2KRB5_PA__DATA
     PROTOTYPE((krb5_pa_data **, int *));
+*/
 
 /* ktran2tran.c */
 struct type_KRB5_TransitedEncoding *krb5_transited2KRB5_TransitedEncoding
     PROTOTYPE((const krb5_transited *, int *));
 
 /* padt2kpadt.c */
+/*
 krb5_pa_data **KRB5_PA__DATA2krb5_pa_data
     PROTOTYPE((struct type_KRB5_PA__DATA *, int *));
+*/
 
 /* tran2ktran.c */
 krb5_transited *KRB5_TransitedEncoding2krb5_transited
index 9e982d2c33644604011b648b7da5adf8c785bb75..f7cf3e92a3147b669354226db9155831785c8765 100644 (file)
@@ -238,6 +238,29 @@ krb5_error_code krb5_decode_generic
                   (translator_func) KRB5_AuthorizationData2krb5_authdata, \
                   (free_func) free_KRB5_AuthorizationData)
 
+/* Sandia Additions */
+#define encode_krb5_pwd_sequence(pauth, output) \
+    krb5_encode_generic((krb5_const_pointer)pauth,  output, \
+                  (encoder_func) encode_KRB5_PasswdSequence, \
+                  (translator_func) krb5_pwd_seq2KRB5_PWD__SEQ, \
+                  (free_func) free_KRB5_PasswdSequence)
+#define decode_krb5_pwd_sequence(pauth, output) \
+    krb5_decode_generic(pauth, (krb5_pointer *) output, \
+                  (decoder_func) decode_KRB5_PasswdSequence, \
+                  (translator_func) KRB5_PWD__SEQ2krb5_pwd_seq, \
+                  (free_func) free_KRB5_PasswdSequence)
+
+#define encode_krb5_pwd_data(pwd_data, output) \
+    krb5_encode_generic((krb5_const_pointer)pwd_data, output, \
+                  (encoder_func) encode_KRB5_PasswdData, \
+                  (translator_func) krb5_pwd_data2KRB5_PWD__DATA, \
+                  (free_func) free_KRB5_PasswdData)
+#define decode_krb5_pwd_data(pwd_data, output) \
+    krb5_decode_generic(pwd_data, (krb5_pointer *) output, \
+                  (decoder_func) decode_KRB5_PasswdData, \
+                  (translator_func) KRB5_PWD__DATA2krb5_pwd_data, \
+                  (free_func) free_KRB5_PasswdData)
+
 /* ASN.1 encoding knowledge; KEEP IN SYNC WITH ASN.1 defs! */
 /* here we use some knowledge of ASN.1 encodings */
 /*