-/* $OpenBSD: radius.c,v 1.3 2015/08/20 21:51:42 deraadt Exp $ */
+/* $OpenBSD: radius.c,v 1.4 2023/07/08 08:53:26 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
* SUCH DAMAGE.
*/
-#include <sys/types.h>
#include <sys/socket.h>
-#include <netinet/in.h>
-
#include <sys/uio.h>
-#include <stdbool.h>
+#include <arpa/inet.h>
+
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* $OpenBSD: radius.h,v 1.1 2015/07/20 23:52:29 yasuoka Exp $ */
+/* $OpenBSD: radius.h,v 1.2 2023/07/08 08:53:26 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
#define RADIUS_TUNNEL_MEDIUM_TYPE_E163 7 /* E.163 (POTS) */
#define RADIUS_TUNNEL_MEDIUM_TYPE_E164 8 /* E.164 (SMDS, Frame
* Relay, ATM) */
+#include <sys/socket.h>
+#include <sys/cdefs.h>
+#include <stdbool.h>
+#include <stdint.h>
-
-#include <sys/cdefs.h>
+struct in_addr;
+struct in6_addr;
__BEGIN_DECLS
-/* $OpenBSD: radius_attr.c,v 1.1 2015/07/20 23:52:29 yasuoka Exp $ */
+/* $OpenBSD: radius_attr.c,v 1.2 2023/07/08 08:53:26 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
* SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
-#include <md5.h>
+#include <endian.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "radius.h"
-/* $OpenBSD: radius_eapmsk.c,v 1.1 2015/07/20 23:52:29 yasuoka Exp $ */
+/* $OpenBSD: radius_eapmsk.c,v 1.2 2023/07/08 08:53:26 yasuoka Exp $ */
/*-
* Copyright (c) 2013 Internet Initiative Japan Inc.
* SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
-#include <openssl/md5.h>
-
#include "radius.h"
#include "radius_local.h"
-/* $OpenBSD: radius_userpass.c,v 1.1 2015/07/20 23:52:29 yasuoka Exp $ */
+/* $OpenBSD: radius_userpass.c,v 1.2 2023/07/08 08:53:26 yasuoka Exp $ */
/*-
* Copyright (c) 2013 Internet Initiative Japan Inc.
* SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-
-#include <stdbool.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <openssl/md5.h>