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