summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorPaul Park <pjpark@mit.edu>1995-04-26 20:58:10 +0000
committerPaul Park <pjpark@mit.edu>1995-04-26 20:58:10 +0000
commit655108064a4227ee14267a943a6d9647a4597ef0 (patch)
tree7a94a7fd8970f8f6f02963f73d26f345ef7e9564 /src/include
parent524620193ee51ed814975c8024a0c7e635fc7509 (diff)
New header files for new administrative protocol
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5503 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/adm.h68
-rw-r--r--src/include/krb5/adm_proto.h78
2 files changed, 146 insertions, 0 deletions
diff --git a/src/include/krb5/adm.h b/src/include/krb5/adm.h
new file mode 100644
index 000000000..e8290da28
--- /dev/null
+++ b/src/include/krb5/adm.h
@@ -0,0 +1,68 @@
+/*
+ * include/krb5/adm.h
+ *
+ * Copyright 1995 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ * require a specific license from the United States Government.
+ * It is the responsibility of any person or organization contemplating
+ * export to obtain such a license before exporting.
+ *
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ *
+ */
+#ifndef KRB5_ADM_H__
+#define KRB5_ADM_H__
+
+/*
+ * Kerberos V5 Change Password service name
+ */
+#define KRB5_ADM_SERVICE_NAME "changepw"
+
+/*
+ * Maximum password length.
+ */
+#define KRB5_ADM_MAX_PASSWORD_LEN 512
+
+/*
+ * Protocl command strings.
+ */
+#define KRB5_ADM_QUIT_CMD "QUIT"
+#define KRB5_ADM_CHECKPW_CMD "CHECKPW"
+#define KRB5_ADM_CHANGEPW_CMD "CHANGEPW"
+#define KRB5_ADM_MOTD_CMD "MOTD"
+#define KRB5_ADM_MIME_CMD "MIME"
+#define KRB5_ADM_LANGUAGE_CMD "LANGUAGE"
+
+/*
+ * Reply status values.
+ */
+#define KRB5_ADM_SUCCESS 0
+#define KRB5_ADM_CMD_UNKNOWN 1
+#define KRB5_ADM_PW_UNACCEPT 2
+#define KRB5_ADM_BAD_PW 3
+#define KRB5_ADM_NOT_IN_TKT 4
+#define KRB5_ADM_CANT_CHANGE 5
+#define KRB5_ADM_LANG_NOT_SUPPORTED 6
+
+/*
+ * Subcodes.
+ */
+#define KRB5_ADM_BAD_ARGS 10
+#define KRB5_ADM_BAD_CMD 11
+#define KRB5_ADM_NO_CMD 12
+#define KRB5_ADM_BAD_PRINC 20
+#define KRB5_ADM_PWD_TOO_SHORT 21
+#define KRB5_ADM_PWD_WEAK 22
+#define KRB5_ADM_NOT_ALLOWED 100
+#endif /* KRB5_ADM_H__ */
diff --git a/src/include/krb5/adm_proto.h b/src/include/krb5/adm_proto.h
new file mode 100644
index 000000000..c515fdf8e
--- /dev/null
+++ b/src/include/krb5/adm_proto.h
@@ -0,0 +1,78 @@
+/*
+ * include/krb5/adm_proto.h
+ *
+ * Copyright 1995 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ * require a specific license from the United States Government.
+ * It is the responsibility of any person or organization contemplating
+ * export to obtain such a license before exporting.
+ *
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ *
+ */
+#ifndef KRB5_ADM_PROTO_H__
+#define KRB5_ADM_PROTO_H__
+
+/*
+ * Function prototypes.
+ */
+
+/* adm_conn.c */
+krb5_error_code INTERFACE krb5_adm_connect
+ PROTOTYPE((krb5_context,
+ char *,
+ char *,
+ char *,
+ int *,
+ krb5_auth_context **,
+ krb5_ccache *));
+void INTERFACE krb5_adm_disconnect
+ PROTOTYPE((krb5_context,
+ int *,
+ krb5_auth_context *,
+ krb5_ccache));
+
+/* adm_proto.c */
+void INTERFACE krb5_free_adm_data
+ PROTOTYPE((krb5_context,
+ int,
+ krb5_data *));
+
+krb5_error_code INTERFACE krb5_send_adm_cmd
+ PROTOTYPE((krb5_context,
+ krb5_pointer,
+ krb5_auth_context *,
+ int,
+ krb5_data *));
+krb5_error_code INTERFACE krb5_send_adm_reply
+ PROTOTYPE((krb5_context,
+ krb5_pointer,
+ krb5_auth_context *,
+ krb5_int32,
+ int,
+ krb5_data *));
+krb5_error_code INTERFACE krb5_read_adm_cmd
+ PROTOTYPE((krb5_context,
+ krb5_pointer,
+ krb5_auth_context *,
+ krb5_int32 *,
+ krb5_data **));
+krb5_error_code INTERFACE krb5_read_adm_reply
+ PROTOTYPE((krb5_context,
+ krb5_pointer,
+ krb5_auth_context *,
+ krb5_int32 *,
+ krb5_int32 *,
+ krb5_data **));
+#endif /* KRB5_ADM_PROTO_H__ */