1 /* $OpenBSD: header.h,v 1.11 2021/01/18 00:53:20 mortimer Exp $ */ 2 /* 3 * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) 4 * 5 * This code was written by Angelos D. Keromytis in Philadelphia, PA, USA, 6 * in April-May 1998 7 * 8 * Copyright (C) 1998, 1999 by Angelos D. Keromytis. 9 * 10 * Permission to use, copy, and modify this software with or without fee 11 * is hereby granted, provided that this entire notice is included in 12 * all copies of any software which is or includes a copy or 13 * modification of this software. 14 * 15 * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTY. IN PARTICULAR, THE AUTHORS MAKES NO 17 * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE 18 * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR 19 * PURPOSE. 20 */ 21 22 #ifndef _HEADER_H_ 23 #define _HEADER_H_ 24 25 /* Functions */ 26 extern void keynote_sign(int, char **), keynote_sigver(int, char **); 27 extern void keynote_verify(int, char **), keynote_keygen(int, char **); 28 extern void print_key(FILE *, char *, char *, int, int); 29 extern void print_space(FILE *, int); 30 extern int read_environment(char *); 31 extern void parse_key(char *); 32 extern int kvparse(void), kvlex(void); 33 extern void kverror(char *); 34 35 /* Variables */ 36 extern int sessid; 37 38 /* Defines */ 39 #define SEED_LEN 40 40 #define DEFAULT_PUBLIC 0x10001 41 42 #define KEY_PRINT_OFFSET 12 43 #define KEY_PRINT_LENGTH 50 44 45 #define SIG_PRINT_OFFSET 12 46 #define SIG_PRINT_LENGTH 50 47 #endif /* _HEADER_H_ */ 48