projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4.4BSD snapshot (revision 8.1)
[unix-history]
/
usr
/
src
/
lib
/
libtelnet
/
encrypt.h
diff --git
a/usr/src/lib/libtelnet/encrypt.h
b/usr/src/lib/libtelnet/encrypt.h
index
3a6dccf
..
3f65d3e
100644
(file)
--- a/
usr/src/lib/libtelnet/encrypt.h
+++ b/
usr/src/lib/libtelnet/encrypt.h
@@
-4,7
+4,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)encrypt.h 5.
1
(Berkeley) %G%
+ * @(#)encrypt.h 5.
4
(Berkeley) %G%
*/
/*
*/
/*
@@
-27,8
+27,9
@@
* or implied warranty.
*/
* or implied warranty.
*/
-#ifndef __ENCRYPT__
-#define __ENCRYPT__
+#ifdef ENCRYPTION
+# ifndef __ENCRYPTION__
+# define __ENCRYPTION__
#define DIR_DECRYPT 1
#define DIR_ENCRYPT 2
#define DIR_DECRYPT 1
#define DIR_ENCRYPT 2
@@
-48,13
+49,13
@@
typedef struct {
unsigned char *data;
} Session_Key;
unsigned char *data;
} Session_Key;
-#
if
!defined(P)
-#ifdef __STDC__
-#
define P(x)
x
-#else
-#
define P(x)
()
-#endif
-#endif
+#
if
!defined(P)
+#
ifdef __STDC__
+#
define P(x)
x
+#
else
+#
define P(x)
()
+#
endif
+#
endif
typedef struct {
char *name;
typedef struct {
char *name;
@@
-66,6
+67,7
@@
typedef struct {
int (*is) P((unsigned char *, int));
int (*reply) P((unsigned char *, int));
void (*session) P((Session_Key *, int));
int (*is) P((unsigned char *, int));
int (*reply) P((unsigned char *, int));
void (*session) P((Session_Key *, int));
+ int (*keyid) P((int, unsigned char *, int *));
void (*printsub) P((unsigned char *, int, unsigned char *, int));
} Encryptions;
void (*printsub) P((unsigned char *, int, unsigned char *, int));
} Encryptions;
@@
-76,4
+78,5
@@
typedef struct {
extern int encrypt_debug_mode;
extern int (*decrypt_input) P((int));
extern void (*encrypt_output) P((unsigned char *, int));
extern int encrypt_debug_mode;
extern int (*decrypt_input) P((int));
extern void (*encrypt_output) P((unsigned char *, int));
-#endif
+# endif /* __ENCRYPTION__ */
+#endif /* ENCRYPTION */