386BSD 0.1 development
[unix-history] / usr / src / include / arpa / telnet.h
index edd6d7c..019bfeb 100644 (file)
@@ -2,11 +2,40 @@
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.
  *
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.
  *
- * %sccs.include.redist.c%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
  *
- *     @(#)telnet.h    5.12 (Berkeley) %G%
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)telnet.h    5.14 (Berkeley) 4/3/91
  */
 
  */
 
+#ifndef _TELNET_H_
+#define        _TELNET_H_
+
 /*
  * Definitions for the TELNET protocol.
  */
 /*
  * Definitions for the TELNET protocol.
  */
@@ -117,6 +146,7 @@ char *telopts[NTELOPTS+1] = {
 #define        TELQUAL_SEND    1       /* send option */
 #define        TELQUAL_INFO    2       /* ENVIRON: informational version of IS */
 #define        TELQUAL_REPLY   2       /* AUTHENTICATION: client version of IS */
 #define        TELQUAL_SEND    1       /* send option */
 #define        TELQUAL_INFO    2       /* ENVIRON: informational version of IS */
 #define        TELQUAL_REPLY   2       /* AUTHENTICATION: client version of IS */
+#define        TELQUAL_NAME    3       /* AUTHENTICATION: client version of IS */
 
 /*
  * LINEMODE suboptions
 
 /*
  * LINEMODE suboptions
@@ -247,20 +277,23 @@ extern char *authtype_names[];
 #define        ENCRYPT_END             4       /* Am ending encrypted */
 #define        ENCRYPT_REQSTART        5       /* Request you start encrypting */
 #define        ENCRYPT_REQEND          6       /* Request you send encrypting */
 #define        ENCRYPT_END             4       /* Am ending encrypted */
 #define        ENCRYPT_REQSTART        5       /* Request you start encrypting */
 #define        ENCRYPT_REQEND          6       /* Request you send encrypting */
-#define        ENCRYPT_CNT             7
+#define        ENCRYPT_ENC_KEYID       7
+#define        ENCRYPT_DEC_KEYID       8
+#define        ENCRYPT_CNT             9
 
 #define        ENCTYPE_ANY             0
 
 #define        ENCTYPE_ANY             0
-#define        ENCTYPE_KRBDES          1
-#define        ENCTYPE_CNT             2
+#define        ENCTYPE_DES_CFB64       1
+#define        ENCTYPE_DES_OFB64       2
+#define        ENCTYPE_CNT             3
 
 #ifdef ENCRYPT_NAMES
 char *encrypt_names[] = {
        "IS", "SUPPORT", "REPLY", "START", "END",
 
 #ifdef ENCRYPT_NAMES
 char *encrypt_names[] = {
        "IS", "SUPPORT", "REPLY", "START", "END",
-       "REQUEST-START", "REQUEST-END",
+       "REQUEST-START", "REQUEST-END", "ENC-KEYID", "DEC-KEYID",
        0,
 };
 char *enctype_names[] = {
        0,
 };
 char *enctype_names[] = {
-       "ANY", "KRBDES",  0,
+       "ANY", "DES_CFB64",  "DES_OFB64",  0,
 };
 #else
 extern char *encrypt_names[];
 };
 #else
 extern char *encrypt_names[];
@@ -273,3 +306,5 @@ extern char *enctype_names[];
 
 #define        ENCTYPE_NAME_OK(x)      ((x) >= 0 && (x) < ENCTYPE_CNT)
 #define        ENCTYPE_NAME(x)         enctype_names[x]
 
 #define        ENCTYPE_NAME_OK(x)      ((x) >= 0 && (x) < ENCTYPE_CNT)
 #define        ENCTYPE_NAME(x)         enctype_names[x]
+
+#endif /* !_TELNET_H_ */