Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/include/ntp_stdlib.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | #define SAVE_ERRNO(stmt) \ | ||||
errno = preserved_errno; \ | errno = preserved_errno; \ | ||||
} | } | ||||
typedef void (*ctrl_c_fn)(void); | typedef void (*ctrl_c_fn)(void); | ||||
/* authkeys.c */ | /* authkeys.c */ | ||||
extern void auth_delkeys (void); | extern void auth_delkeys (void); | ||||
extern int auth_havekey (keyid_t); | extern int auth_havekey (keyid_t); | ||||
extern int authdecrypt (keyid_t, u_int32 *, int, int); | extern int authdecrypt (keyid_t, u_int32 *, size_t, size_t); | ||||
extern int authencrypt (keyid_t, u_int32 *, int); | extern size_t authencrypt (keyid_t, u_int32 *, size_t); | ||||
extern int authhavekey (keyid_t); | extern int authhavekey (keyid_t); | ||||
extern int authistrusted (keyid_t); | extern int authistrusted (keyid_t); | ||||
extern int authreadkeys (const char *); | extern int authreadkeys (const char *); | ||||
extern void authtrust (keyid_t, u_long); | extern void authtrust (keyid_t, u_long); | ||||
extern int authusekey (keyid_t, int, const u_char *); | extern int authusekey (keyid_t, int, const u_char *); | ||||
/* | /* | ||||
* Based on the NTP timestamp, calculate the NTP timestamp of | * Based on the NTP timestamp, calculate the NTP timestamp of | ||||
Show All 12 Lines | |||||
extern void init_auth (void); | extern void init_auth (void); | ||||
extern void init_lib (void); | extern void init_lib (void); | ||||
extern struct savekey *auth_findkey (keyid_t); | extern struct savekey *auth_findkey (keyid_t); | ||||
extern void auth_moremem (int); | extern void auth_moremem (int); | ||||
extern void auth_prealloc_symkeys(int); | extern void auth_prealloc_symkeys(int); | ||||
extern int ymd2yd (int, int, int); | extern int ymd2yd (int, int, int); | ||||
/* a_md5encrypt.c */ | /* a_md5encrypt.c */ | ||||
extern int MD5authdecrypt (int, u_char *, u_int32 *, int, int); | extern int MD5authdecrypt (int, const u_char *, u_int32 *, size_t, size_t); | ||||
extern int MD5authencrypt (int, u_char *, u_int32 *, int); | extern size_t MD5authencrypt (int, const u_char *, u_int32 *, size_t); | ||||
extern void MD5auth_setkey (keyid_t, int, const u_char *, size_t); | extern void MD5auth_setkey (keyid_t, int, const u_char *, size_t); | ||||
extern u_int32 addr2refid (sockaddr_u *); | extern u_int32 addr2refid (sockaddr_u *); | ||||
/* emalloc.c */ | /* emalloc.c */ | ||||
#ifndef EREALLOC_CALLSITE /* ntp_malloc.h defines */ | #ifndef EREALLOC_CALLSITE /* ntp_malloc.h defines */ | ||||
extern void * ereallocz (void *, size_t, size_t, int); | extern void * ereallocz (void *, size_t, size_t, int); | ||||
extern void * oreallocarray (void *optr, size_t nmemb, size_t size); | extern void * oreallocarray (void *optr, size_t nmemb, size_t size); | ||||
#define erealloczsite(p, n, o, z, f, l) ereallocz((p), (n), (o), (z)) | #define erealloczsite(p, n, o, z, f, l) ereallocz((p), (n), (o), (z)) | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |