/* * misc.h All that didn't fit elsewhere. * * Copyright (C) 1995 Olaf Kirch */ #ifndef MISC_H #define MISC_H /* * Generate random key, returning the length of the result. Currently, * weakrandomkey generates a maximum of 20 bytes are generated, but this * may change with future implementations. */ int randomkey(unsigned char *keyout, int len); int weakrandomkey(unsigned char *keyout, int len); int matchhostname(const char *h1, const char *h2); struct hostent; struct hostent *hostent_dup(struct hostent *hp); struct hostent *get_hostent (const char *addr, int len, int type); #endif /* MISC_H */