spiped 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/ext/spiped/extconf.rb +1 -1
  3. data/ext/spiped/{spiped-source → spiped-1.4.1}/BUILDING +0 -0
  4. data/ext/spiped/{spiped-source → spiped-1.4.1}/CHANGELOG +0 -0
  5. data/ext/spiped/{spiped-source → spiped-1.4.1}/COPYRIGHT +0 -0
  6. data/ext/spiped/{spiped-source/Makefile.POSIX → spiped-1.4.1/Makefile} +0 -0
  7. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/README +0 -0
  8. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/posix-cflags.sh +0 -0
  9. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/posix-clock_realtime.c +0 -0
  10. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/posix-l.c +0 -0
  11. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/posix-l.sh +0 -0
  12. data/ext/spiped/{spiped-source → spiped-1.4.1}/POSIX/posix-msg_nosignal.c +0 -0
  13. data/ext/spiped/{spiped-source → spiped-1.4.1}/README +0 -0
  14. data/ext/spiped/{spiped-source → spiped-1.4.1}/STYLE +0 -0
  15. data/ext/spiped/{spiped-source → spiped-1.4.1}/lib/dnsthread/dnsthread.c +0 -0
  16. data/ext/spiped/{spiped-source → spiped-1.4.1}/lib/dnsthread/dnsthread.h +0 -0
  17. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/alg/sha256.c +0 -0
  18. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/alg/sha256.h +0 -0
  19. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c +0 -0
  20. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c +0 -0
  21. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/cpusupport/Build/cpusupport.sh +0 -0
  22. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/cpusupport/cpusupport.h +0 -0
  23. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/cpusupport/cpusupport_x86_aesni.c +0 -0
  24. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aes.c +0 -0
  25. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aes.h +0 -0
  26. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aes_aesni.c +0 -0
  27. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aes_aesni.h +0 -0
  28. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aesctr.c +0 -0
  29. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_aesctr.h +0 -0
  30. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_dh.c +0 -0
  31. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_dh.h +0 -0
  32. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_dh_group14.c +0 -0
  33. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_dh_group14.h +0 -0
  34. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_entropy.c +0 -0
  35. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_entropy.h +0 -0
  36. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_verify_bytes.c +0 -0
  37. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/crypto/crypto_verify_bytes.h +0 -0
  38. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/elasticarray.c +0 -0
  39. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/elasticarray.h +0 -0
  40. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/mpool.h +0 -0
  41. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/ptrheap.c +0 -0
  42. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/ptrheap.h +0 -0
  43. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/timerqueue.c +0 -0
  44. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/datastruct/timerqueue.h +0 -0
  45. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events.c +0 -0
  46. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events.h +0 -0
  47. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events_immediate.c +0 -0
  48. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events_internal.h +0 -0
  49. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events_network.c +0 -0
  50. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events_network_selectstats.c +0 -0
  51. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/events/events_timer.c +0 -0
  52. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/network/network.h +0 -0
  53. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/network/network_accept.c +0 -0
  54. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/network/network_connect.c +0 -0
  55. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/network/network_read.c +0 -0
  56. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/network/network_write.c +0 -0
  57. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/asprintf.c +0 -0
  58. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/asprintf.h +0 -0
  59. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/daemonize.c +0 -0
  60. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/daemonize.h +0 -0
  61. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/entropy.c +0 -0
  62. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/entropy.h +0 -0
  63. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/imalloc.h +0 -0
  64. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/insecure_memzero.c +0 -0
  65. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/insecure_memzero.h +0 -0
  66. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/monoclock.c +0 -0
  67. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/monoclock.h +0 -0
  68. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/noeintr.c +0 -0
  69. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/noeintr.h +0 -0
  70. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sock.c +0 -0
  71. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sock.h +0 -0
  72. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sock_internal.h +0 -0
  73. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sock_util.c +0 -0
  74. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sock_util.h +0 -0
  75. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/sysendian.h +0 -0
  76. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/warnp.c +0 -0
  77. data/ext/spiped/{spiped-source → spiped-1.4.1}/libcperciva/util/warnp.h +0 -0
  78. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_conn.c +0 -0
  79. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_conn.h +0 -0
  80. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_crypt.c +0 -0
  81. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_crypt.h +0 -0
  82. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_handshake.c +0 -0
  83. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_handshake.h +0 -0
  84. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_pipe.c +0 -0
  85. data/ext/spiped/{spiped-source → spiped-1.4.1}/proto/proto_pipe.h +0 -0
  86. data/ext/spiped/spiped-1.4.1/spipe/Makefile +95 -0
  87. data/ext/spiped/{spiped-source → spiped-1.4.1}/spipe/README +0 -0
  88. data/ext/spiped/{spiped-source → spiped-1.4.1}/spipe/main.c +0 -0
  89. data/ext/spiped/{spiped-source → spiped-1.4.1}/spipe/pushbits.c +0 -0
  90. data/ext/spiped/{spiped-source → spiped-1.4.1}/spipe/pushbits.h +0 -0
  91. data/ext/spiped/{spiped-source → spiped-1.4.1}/spipe/spipe.1 +0 -0
  92. data/ext/spiped/spiped-1.4.1/spiped/Makefile +103 -0
  93. data/ext/spiped/{spiped-source → spiped-1.4.1}/spiped/README +0 -0
  94. data/ext/spiped/{spiped-source → spiped-1.4.1}/spiped/dispatch.c +0 -0
  95. data/ext/spiped/{spiped-source → spiped-1.4.1}/spiped/dispatch.h +0 -0
  96. data/ext/spiped/{spiped-source → spiped-1.4.1}/spiped/main.c +0 -0
  97. data/ext/spiped/{spiped-source → spiped-1.4.1}/spiped/spiped.1 +0 -0
  98. data/lib/spiped.rb +28 -1
  99. metadata +96 -99
  100. data/ext/spiped/spiped-source/Makefile +0 -47
  101. data/ext/spiped/spiped-source/Makefile.inc +0 -20
  102. data/ext/spiped/spiped-source/Makefile.prog +0 -23
  103. data/ext/spiped/spiped-source/spipe/Makefile +0 -90
  104. data/ext/spiped/spiped-source/spiped/Makefile +0 -98
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27b671f86f19d8400b9f28f1e43394f0290e74f6
4
- data.tar.gz: 81725ffc4e73f64e08b250c35b304c181430fc22
3
+ metadata.gz: 0fe8728edfa68317c1cf898c94bae8911fa81b86
4
+ data.tar.gz: 8ce799e0f1c9f87dd684325c9adf322ae90e270b
5
5
  SHA512:
6
- metadata.gz: 966032c8cbcfdaa3c67950c1c7fd53eeb30a54c627c1f177e57f526e2ec1a157bdbcf4708a2c29187e76ff586633614c841b416fc6f02e5dfb331b307905eb57
7
- data.tar.gz: 236fdf9e640e837bb7e99a7b3b7c4c4dcdb9538140d3338a14220e4a0a5505d8f99085645750538c3393a23305b7183012ef70741ab75ac9946b6b362ebe4b91
6
+ metadata.gz: 84069dd4ed06174ff0b63ff06116c4048c889c257581c1eb088a16bd986e6a30fcf5b11d9bb10858c280df8a8088ad8e3c522b2fa78ea55fcce8406b6946ba43
7
+ data.tar.gz: c42871f87f6a879f505e26c742e61527aed4f3f89fede179db327cc634f45fce73b4aa78a5adf015cb6a7bf3c0d641014ced7e3ba4efa589cdcdad02e4290d84
@@ -1,3 +1,3 @@
1
- system "cp -R spiped-source/* ./"
1
+ system "cp -R spiped-1.4.1/* ./"
2
2
 
3
3
 
@@ -0,0 +1,95 @@
1
+ .POSIX:
2
+ PROG=spipe
3
+ MAN1=spipe.1
4
+ SRCS=main.c pushbits.c proto_conn.c proto_crypt.c proto_handshake.c proto_pipe.c sha256.c elasticarray.c ptrheap.c timerqueue.c asprintf.c entropy.c insecure_memzero.c monoclock.c noeintr.c sock.c warnp.c cpusupport_x86_aesni.c events_immediate.c events_network.c events_network_selectstats.c events_timer.c events.c network_connect.c network_read.c network_write.c crypto_aes.c crypto_aes_aesni.c crypto_aesctr.c crypto_dh.c crypto_dh_group14.c crypto_entropy.c crypto_verify_bytes.c
5
+ IDIRS=-I ../proto -I ../libcperciva/alg -I ../libcperciva/datastruct -I ../libcperciva/util -I ../libcperciva/cpusupport -I ../libcperciva/events -I ../libcperciva/network -I ../libcperciva/crypto
6
+ LDADD_REQ=-lcrypto -lpthread
7
+
8
+ all: ${PROG}
9
+
10
+ install:${PROG}
11
+ mkdir -p ${BINDIR}
12
+ cp ${PROG} ${BINDIR}/_inst.${PROG}.$$$$_ && \
13
+ strip ${BINDIR}/_inst.${PROG}.$$$$_ && \
14
+ chmod 0555 ${BINDIR}/_inst.${PROG}.$$$$_ && \
15
+ mv -f ${BINDIR}/_inst.${PROG}.$$$$_ ${BINDIR}/${PROG}
16
+ if ! [ -z "${MAN1DIR}" ]; then \
17
+ for MPAGE in ${MAN1}; do \
18
+ cp $$MPAGE ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
19
+ chmod 0444 ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
20
+ mv -f ${MAN1DIR}/_inst.$$MPAGE.$$$$_ ${MAN1DIR}/$$MPAGE; \
21
+ done; \
22
+ fi
23
+
24
+ clean:
25
+ rm -f ${PROG} ${SRCS:.c=.o}
26
+
27
+ ${PROG}:${SRCS:.c=.o}
28
+ ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
29
+
30
+ main.o: main.c
31
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c main.c -o main.o
32
+ pushbits.o: pushbits.c
33
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c pushbits.c -o pushbits.o
34
+ proto_conn.o: ../proto/proto_conn.c
35
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_conn.c -o proto_conn.o
36
+ proto_crypt.o: ../proto/proto_crypt.c
37
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_crypt.c -o proto_crypt.o
38
+ proto_handshake.o: ../proto/proto_handshake.c
39
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_handshake.c -o proto_handshake.o
40
+ proto_pipe.o: ../proto/proto_pipe.c
41
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_pipe.c -o proto_pipe.o
42
+ sha256.o: ../libcperciva/alg/sha256.c
43
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/alg/sha256.c -o sha256.o
44
+ elasticarray.o: ../libcperciva/datastruct/elasticarray.c
45
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/elasticarray.c -o elasticarray.o
46
+ ptrheap.o: ../libcperciva/datastruct/ptrheap.c
47
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/ptrheap.c -o ptrheap.o
48
+ timerqueue.o: ../libcperciva/datastruct/timerqueue.c
49
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/timerqueue.c -o timerqueue.o
50
+ asprintf.o: ../libcperciva/util/asprintf.c
51
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/asprintf.c -o asprintf.o
52
+ entropy.o: ../libcperciva/util/entropy.c
53
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/entropy.c -o entropy.o
54
+ insecure_memzero.o: ../libcperciva/util/insecure_memzero.c
55
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/insecure_memzero.c -o insecure_memzero.o
56
+ monoclock.o: ../libcperciva/util/monoclock.c
57
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/monoclock.c -o monoclock.o
58
+ noeintr.o: ../libcperciva/util/noeintr.c
59
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/noeintr.c -o noeintr.o
60
+ sock.o: ../libcperciva/util/sock.c
61
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/sock.c -o sock.o
62
+ warnp.o: ../libcperciva/util/warnp.c
63
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/warnp.c -o warnp.o
64
+ cpusupport_x86_aesni.o: ../libcperciva/cpusupport/cpusupport_x86_aesni.c
65
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/cpusupport/cpusupport_x86_aesni.c -o cpusupport_x86_aesni.o
66
+ events_immediate.o: ../libcperciva/events/events_immediate.c
67
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_immediate.c -o events_immediate.o
68
+ events_network.o: ../libcperciva/events/events_network.c
69
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_network.c -o events_network.o
70
+ events_network_selectstats.o: ../libcperciva/events/events_network_selectstats.c
71
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_network_selectstats.c -o events_network_selectstats.o
72
+ events_timer.o: ../libcperciva/events/events_timer.c
73
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_timer.c -o events_timer.o
74
+ events.o: ../libcperciva/events/events.c
75
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events.c -o events.o
76
+ network_connect.o: ../libcperciva/network/network_connect.c
77
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_connect.c -o network_connect.o
78
+ network_read.o: ../libcperciva/network/network_read.c
79
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_read.c -o network_read.o
80
+ network_write.o: ../libcperciva/network/network_write.c
81
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_write.c -o network_write.o
82
+ crypto_aes.o: ../libcperciva/crypto/crypto_aes.c
83
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aes.c -o crypto_aes.o
84
+ crypto_aes_aesni.o: ../libcperciva/crypto/crypto_aes_aesni.c
85
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" ${CFLAGS_X86_AESNI} -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aes_aesni.c -o crypto_aes_aesni.o
86
+ crypto_aesctr.o: ../libcperciva/crypto/crypto_aesctr.c
87
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aesctr.c -o crypto_aesctr.o
88
+ crypto_dh.o: ../libcperciva/crypto/crypto_dh.c
89
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_dh.c -o crypto_dh.o
90
+ crypto_dh_group14.o: ../libcperciva/crypto/crypto_dh_group14.c
91
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_dh_group14.c -o crypto_dh_group14.o
92
+ crypto_entropy.o: ../libcperciva/crypto/crypto_entropy.c
93
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_entropy.c -o crypto_entropy.o
94
+ crypto_verify_bytes.o: ../libcperciva/crypto/crypto_verify_bytes.c
95
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_verify_bytes.c -o crypto_verify_bytes.o
@@ -0,0 +1,103 @@
1
+ .POSIX:
2
+ PROG=spiped
3
+ MAN1=spiped.1
4
+ SRCS=main.c dispatch.c proto_conn.c proto_crypt.c proto_handshake.c proto_pipe.c sha256.c elasticarray.c ptrheap.c timerqueue.c dnsthread.c asprintf.c daemonize.c entropy.c insecure_memzero.c monoclock.c noeintr.c sock.c sock_util.c warnp.c cpusupport_x86_aesni.c events_immediate.c events_network.c events_network_selectstats.c events_timer.c events.c network_accept.c network_connect.c network_read.c network_write.c crypto_aes.c crypto_aes_aesni.c crypto_aesctr.c crypto_dh.c crypto_dh_group14.c crypto_entropy.c crypto_verify_bytes.c
5
+ IDIRS=-I ../proto -I ../libcperciva/alg -I ../libcperciva/datastruct -I ../lib/dnsthread -I ../libcperciva/util -I ../libcperciva/cpusupport -I ../libcperciva/events -I ../libcperciva/network -I ../libcperciva/crypto
6
+ LDADD_REQ=-lcrypto -lpthread
7
+
8
+ all: ${PROG}
9
+
10
+ install:${PROG}
11
+ mkdir -p ${BINDIR}
12
+ cp ${PROG} ${BINDIR}/_inst.${PROG}.$$$$_ && \
13
+ strip ${BINDIR}/_inst.${PROG}.$$$$_ && \
14
+ chmod 0555 ${BINDIR}/_inst.${PROG}.$$$$_ && \
15
+ mv -f ${BINDIR}/_inst.${PROG}.$$$$_ ${BINDIR}/${PROG}
16
+ if ! [ -z "${MAN1DIR}" ]; then \
17
+ for MPAGE in ${MAN1}; do \
18
+ cp $$MPAGE ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
19
+ chmod 0444 ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
20
+ mv -f ${MAN1DIR}/_inst.$$MPAGE.$$$$_ ${MAN1DIR}/$$MPAGE; \
21
+ done; \
22
+ fi
23
+
24
+ clean:
25
+ rm -f ${PROG} ${SRCS:.c=.o}
26
+
27
+ ${PROG}:${SRCS:.c=.o}
28
+ ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
29
+
30
+ main.o: main.c
31
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c main.c -o main.o
32
+ dispatch.o: dispatch.c
33
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c dispatch.c -o dispatch.o
34
+ proto_conn.o: ../proto/proto_conn.c
35
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_conn.c -o proto_conn.o
36
+ proto_crypt.o: ../proto/proto_crypt.c
37
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_crypt.c -o proto_crypt.o
38
+ proto_handshake.o: ../proto/proto_handshake.c
39
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_handshake.c -o proto_handshake.o
40
+ proto_pipe.o: ../proto/proto_pipe.c
41
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../proto/proto_pipe.c -o proto_pipe.o
42
+ sha256.o: ../libcperciva/alg/sha256.c
43
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/alg/sha256.c -o sha256.o
44
+ elasticarray.o: ../libcperciva/datastruct/elasticarray.c
45
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/elasticarray.c -o elasticarray.o
46
+ ptrheap.o: ../libcperciva/datastruct/ptrheap.c
47
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/ptrheap.c -o ptrheap.o
48
+ timerqueue.o: ../libcperciva/datastruct/timerqueue.c
49
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/datastruct/timerqueue.c -o timerqueue.o
50
+ dnsthread.o: ../lib/dnsthread/dnsthread.c
51
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../lib/dnsthread/dnsthread.c -o dnsthread.o
52
+ asprintf.o: ../libcperciva/util/asprintf.c
53
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/asprintf.c -o asprintf.o
54
+ daemonize.o: ../libcperciva/util/daemonize.c
55
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/daemonize.c -o daemonize.o
56
+ entropy.o: ../libcperciva/util/entropy.c
57
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/entropy.c -o entropy.o
58
+ insecure_memzero.o: ../libcperciva/util/insecure_memzero.c
59
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/insecure_memzero.c -o insecure_memzero.o
60
+ monoclock.o: ../libcperciva/util/monoclock.c
61
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/monoclock.c -o monoclock.o
62
+ noeintr.o: ../libcperciva/util/noeintr.c
63
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/noeintr.c -o noeintr.o
64
+ sock.o: ../libcperciva/util/sock.c
65
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/sock.c -o sock.o
66
+ sock_util.o: ../libcperciva/util/sock_util.c
67
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/sock_util.c -o sock_util.o
68
+ warnp.o: ../libcperciva/util/warnp.c
69
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/util/warnp.c -o warnp.o
70
+ cpusupport_x86_aesni.o: ../libcperciva/cpusupport/cpusupport_x86_aesni.c
71
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/cpusupport/cpusupport_x86_aesni.c -o cpusupport_x86_aesni.o
72
+ events_immediate.o: ../libcperciva/events/events_immediate.c
73
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_immediate.c -o events_immediate.o
74
+ events_network.o: ../libcperciva/events/events_network.c
75
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_network.c -o events_network.o
76
+ events_network_selectstats.o: ../libcperciva/events/events_network_selectstats.c
77
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_network_selectstats.c -o events_network_selectstats.o
78
+ events_timer.o: ../libcperciva/events/events_timer.c
79
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events_timer.c -o events_timer.o
80
+ events.o: ../libcperciva/events/events.c
81
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/events/events.c -o events.o
82
+ network_accept.o: ../libcperciva/network/network_accept.c
83
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_accept.c -o network_accept.o
84
+ network_connect.o: ../libcperciva/network/network_connect.c
85
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_connect.c -o network_connect.o
86
+ network_read.o: ../libcperciva/network/network_read.c
87
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_read.c -o network_read.o
88
+ network_write.o: ../libcperciva/network/network_write.c
89
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/network/network_write.c -o network_write.o
90
+ crypto_aes.o: ../libcperciva/crypto/crypto_aes.c
91
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aes.c -o crypto_aes.o
92
+ crypto_aes_aesni.o: ../libcperciva/crypto/crypto_aes_aesni.c
93
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" ${CFLAGS_X86_AESNI} -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aes_aesni.c -o crypto_aes_aesni.o
94
+ crypto_aesctr.o: ../libcperciva/crypto/crypto_aesctr.c
95
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_aesctr.c -o crypto_aesctr.o
96
+ crypto_dh.o: ../libcperciva/crypto/crypto_dh.c
97
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_dh.c -o crypto_dh.o
98
+ crypto_dh_group14.o: ../libcperciva/crypto/crypto_dh_group14.c
99
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_dh_group14.c -o crypto_dh_group14.o
100
+ crypto_entropy.o: ../libcperciva/crypto/crypto_entropy.c
101
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_entropy.c -o crypto_entropy.o
102
+ crypto_verify_bytes.o: ../libcperciva/crypto/crypto_verify_bytes.c
103
+ ${CC} ${CFLAGS} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I .. ${IDIRS} -c ../libcperciva/crypto/crypto_verify_bytes.c -o crypto_verify_bytes.o
@@ -1,3 +1,30 @@
1
+ require 'tempfile'
2
+ require 'base64'
3
+
1
4
  class Spiped
2
- Version = "0.0.0"
5
+ VERSION = "1.4.1"
6
+ BASE = File.expand_path File.join(File.dirname(__FILE__), "..", "ext", "spiped" )
7
+
8
+ SPIPE = File.join(BASE, "spipe", "spipe" )
9
+ SPIPED = File.join(BASE, "spiped", "spiped" )
10
+
11
+ #
12
+ # 1. Delete the 'source' socket file if it exists.
13
+ # 2. Write the provided base64-encoded key to disk.
14
+ # 3. Spawn spiped to send plaintext received on `source` encrypted to spiped
15
+ # running at `target`
16
+ #
17
+ def self.spawn_encryptor( source, target, key, verbose = false )
18
+ File.delete(source) if File.exist?(source)
19
+
20
+ keyfile = Tempfile.new("spiped")
21
+ keyfile.write Base64.decode64(key)
22
+ keyfile.close
23
+
24
+ cmd = [SPIPED, '-e', '-s', source, '-t', target, '-k', keyfile.path, '-D']
25
+ if verbose
26
+ $stdout.puts "Running #{cmd.join(' ')}"
27
+ end
28
+ system *cmd
29
+ end
3
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spiped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian P O'Rourke
@@ -18,104 +18,101 @@ extensions:
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ext/spiped/extconf.rb
21
- - ext/spiped/spiped-source/BUILDING
22
- - ext/spiped/spiped-source/CHANGELOG
23
- - ext/spiped/spiped-source/COPYRIGHT
24
- - ext/spiped/spiped-source/lib/dnsthread/dnsthread.c
25
- - ext/spiped/spiped-source/lib/dnsthread/dnsthread.h
26
- - ext/spiped/spiped-source/libcperciva/alg/sha256.c
27
- - ext/spiped/spiped-source/libcperciva/alg/sha256.h
28
- - ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c
29
- - ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c
30
- - ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport.sh
31
- - ext/spiped/spiped-source/libcperciva/cpusupport/cpusupport.h
32
- - ext/spiped/spiped-source/libcperciva/cpusupport/cpusupport_x86_aesni.c
33
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aes.c
34
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aes.h
35
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aes_aesni.c
36
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aes_aesni.h
37
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aesctr.c
38
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_aesctr.h
39
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_dh.c
40
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_dh.h
41
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_dh_group14.c
42
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_dh_group14.h
43
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_entropy.c
44
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_entropy.h
45
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_verify_bytes.c
46
- - ext/spiped/spiped-source/libcperciva/crypto/crypto_verify_bytes.h
47
- - ext/spiped/spiped-source/libcperciva/datastruct/elasticarray.c
48
- - ext/spiped/spiped-source/libcperciva/datastruct/elasticarray.h
49
- - ext/spiped/spiped-source/libcperciva/datastruct/mpool.h
50
- - ext/spiped/spiped-source/libcperciva/datastruct/ptrheap.c
51
- - ext/spiped/spiped-source/libcperciva/datastruct/ptrheap.h
52
- - ext/spiped/spiped-source/libcperciva/datastruct/timerqueue.c
53
- - ext/spiped/spiped-source/libcperciva/datastruct/timerqueue.h
54
- - ext/spiped/spiped-source/libcperciva/events/events.c
55
- - ext/spiped/spiped-source/libcperciva/events/events.h
56
- - ext/spiped/spiped-source/libcperciva/events/events_immediate.c
57
- - ext/spiped/spiped-source/libcperciva/events/events_internal.h
58
- - ext/spiped/spiped-source/libcperciva/events/events_network.c
59
- - ext/spiped/spiped-source/libcperciva/events/events_network_selectstats.c
60
- - ext/spiped/spiped-source/libcperciva/events/events_timer.c
61
- - ext/spiped/spiped-source/libcperciva/network/network.h
62
- - ext/spiped/spiped-source/libcperciva/network/network_accept.c
63
- - ext/spiped/spiped-source/libcperciva/network/network_connect.c
64
- - ext/spiped/spiped-source/libcperciva/network/network_read.c
65
- - ext/spiped/spiped-source/libcperciva/network/network_write.c
66
- - ext/spiped/spiped-source/libcperciva/util/asprintf.c
67
- - ext/spiped/spiped-source/libcperciva/util/asprintf.h
68
- - ext/spiped/spiped-source/libcperciva/util/daemonize.c
69
- - ext/spiped/spiped-source/libcperciva/util/daemonize.h
70
- - ext/spiped/spiped-source/libcperciva/util/entropy.c
71
- - ext/spiped/spiped-source/libcperciva/util/entropy.h
72
- - ext/spiped/spiped-source/libcperciva/util/imalloc.h
73
- - ext/spiped/spiped-source/libcperciva/util/insecure_memzero.c
74
- - ext/spiped/spiped-source/libcperciva/util/insecure_memzero.h
75
- - ext/spiped/spiped-source/libcperciva/util/monoclock.c
76
- - ext/spiped/spiped-source/libcperciva/util/monoclock.h
77
- - ext/spiped/spiped-source/libcperciva/util/noeintr.c
78
- - ext/spiped/spiped-source/libcperciva/util/noeintr.h
79
- - ext/spiped/spiped-source/libcperciva/util/sock.c
80
- - ext/spiped/spiped-source/libcperciva/util/sock.h
81
- - ext/spiped/spiped-source/libcperciva/util/sock_internal.h
82
- - ext/spiped/spiped-source/libcperciva/util/sock_util.c
83
- - ext/spiped/spiped-source/libcperciva/util/sock_util.h
84
- - ext/spiped/spiped-source/libcperciva/util/sysendian.h
85
- - ext/spiped/spiped-source/libcperciva/util/warnp.c
86
- - ext/spiped/spiped-source/libcperciva/util/warnp.h
87
- - ext/spiped/spiped-source/Makefile
88
- - ext/spiped/spiped-source/Makefile.inc
89
- - ext/spiped/spiped-source/Makefile.POSIX
90
- - ext/spiped/spiped-source/Makefile.prog
91
- - ext/spiped/spiped-source/POSIX/posix-cflags.sh
92
- - ext/spiped/spiped-source/POSIX/posix-clock_realtime.c
93
- - ext/spiped/spiped-source/POSIX/posix-l.c
94
- - ext/spiped/spiped-source/POSIX/posix-l.sh
95
- - ext/spiped/spiped-source/POSIX/posix-msg_nosignal.c
96
- - ext/spiped/spiped-source/POSIX/README
97
- - ext/spiped/spiped-source/proto/proto_conn.c
98
- - ext/spiped/spiped-source/proto/proto_conn.h
99
- - ext/spiped/spiped-source/proto/proto_crypt.c
100
- - ext/spiped/spiped-source/proto/proto_crypt.h
101
- - ext/spiped/spiped-source/proto/proto_handshake.c
102
- - ext/spiped/spiped-source/proto/proto_handshake.h
103
- - ext/spiped/spiped-source/proto/proto_pipe.c
104
- - ext/spiped/spiped-source/proto/proto_pipe.h
105
- - ext/spiped/spiped-source/README
106
- - ext/spiped/spiped-source/spipe/main.c
107
- - ext/spiped/spiped-source/spipe/Makefile
108
- - ext/spiped/spiped-source/spipe/pushbits.c
109
- - ext/spiped/spiped-source/spipe/pushbits.h
110
- - ext/spiped/spiped-source/spipe/README
111
- - ext/spiped/spiped-source/spipe/spipe.1
112
- - ext/spiped/spiped-source/spiped/dispatch.c
113
- - ext/spiped/spiped-source/spiped/dispatch.h
114
- - ext/spiped/spiped-source/spiped/main.c
115
- - ext/spiped/spiped-source/spiped/Makefile
116
- - ext/spiped/spiped-source/spiped/README
117
- - ext/spiped/spiped-source/spiped/spiped.1
118
- - ext/spiped/spiped-source/STYLE
21
+ - ext/spiped/spiped-1.4.1/BUILDING
22
+ - ext/spiped/spiped-1.4.1/CHANGELOG
23
+ - ext/spiped/spiped-1.4.1/COPYRIGHT
24
+ - ext/spiped/spiped-1.4.1/lib/dnsthread/dnsthread.c
25
+ - ext/spiped/spiped-1.4.1/lib/dnsthread/dnsthread.h
26
+ - ext/spiped/spiped-1.4.1/libcperciva/alg/sha256.c
27
+ - ext/spiped/spiped-1.4.1/libcperciva/alg/sha256.h
28
+ - ext/spiped/spiped-1.4.1/libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c
29
+ - ext/spiped/spiped-1.4.1/libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c
30
+ - ext/spiped/spiped-1.4.1/libcperciva/cpusupport/Build/cpusupport.sh
31
+ - ext/spiped/spiped-1.4.1/libcperciva/cpusupport/cpusupport.h
32
+ - ext/spiped/spiped-1.4.1/libcperciva/cpusupport/cpusupport_x86_aesni.c
33
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aes.c
34
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aes.h
35
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aes_aesni.c
36
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aes_aesni.h
37
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aesctr.c
38
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_aesctr.h
39
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_dh.c
40
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_dh.h
41
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_dh_group14.c
42
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_dh_group14.h
43
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_entropy.c
44
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_entropy.h
45
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_verify_bytes.c
46
+ - ext/spiped/spiped-1.4.1/libcperciva/crypto/crypto_verify_bytes.h
47
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/elasticarray.c
48
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/elasticarray.h
49
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/mpool.h
50
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/ptrheap.c
51
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/ptrheap.h
52
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/timerqueue.c
53
+ - ext/spiped/spiped-1.4.1/libcperciva/datastruct/timerqueue.h
54
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events.c
55
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events.h
56
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events_immediate.c
57
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events_internal.h
58
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events_network.c
59
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events_network_selectstats.c
60
+ - ext/spiped/spiped-1.4.1/libcperciva/events/events_timer.c
61
+ - ext/spiped/spiped-1.4.1/libcperciva/network/network.h
62
+ - ext/spiped/spiped-1.4.1/libcperciva/network/network_accept.c
63
+ - ext/spiped/spiped-1.4.1/libcperciva/network/network_connect.c
64
+ - ext/spiped/spiped-1.4.1/libcperciva/network/network_read.c
65
+ - ext/spiped/spiped-1.4.1/libcperciva/network/network_write.c
66
+ - ext/spiped/spiped-1.4.1/libcperciva/util/asprintf.c
67
+ - ext/spiped/spiped-1.4.1/libcperciva/util/asprintf.h
68
+ - ext/spiped/spiped-1.4.1/libcperciva/util/daemonize.c
69
+ - ext/spiped/spiped-1.4.1/libcperciva/util/daemonize.h
70
+ - ext/spiped/spiped-1.4.1/libcperciva/util/entropy.c
71
+ - ext/spiped/spiped-1.4.1/libcperciva/util/entropy.h
72
+ - ext/spiped/spiped-1.4.1/libcperciva/util/imalloc.h
73
+ - ext/spiped/spiped-1.4.1/libcperciva/util/insecure_memzero.c
74
+ - ext/spiped/spiped-1.4.1/libcperciva/util/insecure_memzero.h
75
+ - ext/spiped/spiped-1.4.1/libcperciva/util/monoclock.c
76
+ - ext/spiped/spiped-1.4.1/libcperciva/util/monoclock.h
77
+ - ext/spiped/spiped-1.4.1/libcperciva/util/noeintr.c
78
+ - ext/spiped/spiped-1.4.1/libcperciva/util/noeintr.h
79
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sock.c
80
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sock.h
81
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sock_internal.h
82
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sock_util.c
83
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sock_util.h
84
+ - ext/spiped/spiped-1.4.1/libcperciva/util/sysendian.h
85
+ - ext/spiped/spiped-1.4.1/libcperciva/util/warnp.c
86
+ - ext/spiped/spiped-1.4.1/libcperciva/util/warnp.h
87
+ - ext/spiped/spiped-1.4.1/Makefile
88
+ - ext/spiped/spiped-1.4.1/POSIX/posix-cflags.sh
89
+ - ext/spiped/spiped-1.4.1/POSIX/posix-clock_realtime.c
90
+ - ext/spiped/spiped-1.4.1/POSIX/posix-l.c
91
+ - ext/spiped/spiped-1.4.1/POSIX/posix-l.sh
92
+ - ext/spiped/spiped-1.4.1/POSIX/posix-msg_nosignal.c
93
+ - ext/spiped/spiped-1.4.1/POSIX/README
94
+ - ext/spiped/spiped-1.4.1/proto/proto_conn.c
95
+ - ext/spiped/spiped-1.4.1/proto/proto_conn.h
96
+ - ext/spiped/spiped-1.4.1/proto/proto_crypt.c
97
+ - ext/spiped/spiped-1.4.1/proto/proto_crypt.h
98
+ - ext/spiped/spiped-1.4.1/proto/proto_handshake.c
99
+ - ext/spiped/spiped-1.4.1/proto/proto_handshake.h
100
+ - ext/spiped/spiped-1.4.1/proto/proto_pipe.c
101
+ - ext/spiped/spiped-1.4.1/proto/proto_pipe.h
102
+ - ext/spiped/spiped-1.4.1/README
103
+ - ext/spiped/spiped-1.4.1/spipe/main.c
104
+ - ext/spiped/spiped-1.4.1/spipe/Makefile
105
+ - ext/spiped/spiped-1.4.1/spipe/pushbits.c
106
+ - ext/spiped/spiped-1.4.1/spipe/pushbits.h
107
+ - ext/spiped/spiped-1.4.1/spipe/README
108
+ - ext/spiped/spiped-1.4.1/spipe/spipe.1
109
+ - ext/spiped/spiped-1.4.1/spiped/dispatch.c
110
+ - ext/spiped/spiped-1.4.1/spiped/dispatch.h
111
+ - ext/spiped/spiped-1.4.1/spiped/main.c
112
+ - ext/spiped/spiped-1.4.1/spiped/Makefile
113
+ - ext/spiped/spiped-1.4.1/spiped/README
114
+ - ext/spiped/spiped-1.4.1/spiped/spiped.1
115
+ - ext/spiped/spiped-1.4.1/STYLE
119
116
  - lib/spiped.rb
120
117
  homepage: https://github.com
121
118
  licenses: []
@@ -1,47 +0,0 @@
1
- PKG= spiped
2
- PROGS= spiped spipe
3
- PUBLISH= ${PROGS} BUILDING CHANGELOG COPYRIGHT README STYLE POSIX lib libcperciva proto
4
-
5
- .for D in ${PROGS}
6
- ${PKG}-${VERSION}/${D}/Makefile:
7
- echo '.POSIX:' > $@
8
- ( cd ${D} && echo -n 'PROG=' && make -V PROG ) >> $@
9
- ( cd ${D} && echo -n 'MAN1=' && make -V MAN1 ) >> $@
10
- ( cd ${D} && echo -n 'SRCS=' && make -V SRCS | sed -e 's|cpusupport-config.h||' ) >> $@
11
- ( cd ${D} && echo -n 'IDIRS=' && make -V IDIRS ) >> $@
12
- ( cd ${D} && echo -n 'LDADD_REQ=' && make -V LDADD_REQ ) >> $@
13
- cat Makefile.prog >> $@
14
- ( cd ${D} && make -V SRCS | \
15
- sed -e 's| cpusupport-config.h||' | \
16
- tr ' ' '\n' | \
17
- sed -E 's/.c$$/.o/' | \
18
- while read F; do \
19
- S=`make source-$${F}`; \
20
- CF=`make -V cflags-$${F}`; \
21
- echo "$${F}: $${S}"; \
22
- echo " \$${CC} \$${CFLAGS} \$${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -DCPUSUPPORT_CONFIG_FILE=\\\"cpusupport-config.h\\\" $${CF} -I .. \$${IDIRS} -c $${S} -o $${F}"; \
23
- done ) >> $@
24
- .endfor
25
-
26
- publish: clean
27
- if [ -z "${VERSION}" ]; then \
28
- echo "VERSION must be specified!"; \
29
- exit 1; \
30
- fi
31
- if find . | grep \~; then \
32
- echo "Delete temporary files before publishing!"; \
33
- exit 1; \
34
- fi
35
- rm -f ${PKG}-${VERSION}.tgz
36
- mkdir ${PKG}-${VERSION}
37
- tar -cf- --exclude 'Makefile.*' --exclude Makefile --exclude .svn ${PUBLISH} | \
38
- tar -xf- -C ${PKG}-${VERSION}
39
- cp Makefile.POSIX ${PKG}-${VERSION}/Makefile
40
- .for D in ${PROGS}
41
- make ${PKG}-${VERSION}/${D}/Makefile
42
- .endfor
43
- tar -cvzf ${PKG}-${VERSION}.tgz ${PKG}-${VERSION}
44
- rm -r ${PKG}-${VERSION}
45
-
46
- SUBDIR= ${PROGS}
47
- .include <bsd.subdir.mk>
@@ -1,20 +0,0 @@
1
- # Used by Makefile code which generates POSIX Makefiles
2
- .for X in ${SRCS}
3
- source-${X:.c=.o}: ${X}
4
- @echo $>
5
- .endfor
6
-
7
- # Defaults for all kivaloo code
8
- NO_MAN ?= yes
9
- WARNS ?= 6
10
-
11
- # Make logic (bits which are separated out in individual Makefiles).
12
- CFLAGS += ${IDIRS}
13
- LDADD += ${LDADD_REQ}
14
-
15
- # CPU features compiler support detection
16
- SRCS += cpusupport-config.h
17
- cpusupport-config.h:
18
- ( export CFLAGS="${CFLAGS}"; cd ../libcperciva/cpusupport/Build && command -p sh cpusupport.sh ) > cpusupport-config.h
19
- CLEANFILES+= cpusupport-config.h
20
- CFLAGS += -I . -D CPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\"
@@ -1,23 +0,0 @@
1
-
2
- all: ${PROG}
3
-
4
- install:${PROG}
5
- mkdir -p ${BINDIR}
6
- cp ${PROG} ${BINDIR}/_inst.${PROG}.$$$$_ && \
7
- strip ${BINDIR}/_inst.${PROG}.$$$$_ && \
8
- chmod 0555 ${BINDIR}/_inst.${PROG}.$$$$_ && \
9
- mv -f ${BINDIR}/_inst.${PROG}.$$$$_ ${BINDIR}/${PROG}
10
- if ! [ -z "${MAN1DIR}" ]; then \
11
- for MPAGE in ${MAN1}; do \
12
- cp $$MPAGE ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
13
- chmod 0444 ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \
14
- mv -f ${MAN1DIR}/_inst.$$MPAGE.$$$$_ ${MAN1DIR}/$$MPAGE; \
15
- done; \
16
- fi
17
-
18
- clean:
19
- rm -f ${PROG} ${SRCS:.c=.o}
20
-
21
- ${PROG}:${SRCS:.c=.o}
22
- ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
23
-
@@ -1,90 +0,0 @@
1
- # Program name.
2
- PROG = spipe
3
- MAN1 = ${PROG}.1
4
-
5
- # Libraries which are sometimes merged into libc
6
- LDADD = -lrt
7
- #LDADD += -lxnet # Missing on FreeBSD
8
-
9
- # Library code required
10
- LDADD_REQ = -lcrypto
11
- LDADD_REQ += -lpthread
12
-
13
- # spipe code
14
- SRCS = main.c
15
- SRCS += pushbits.c
16
-
17
- # spipe protocol
18
- .PATH.c : ../proto
19
- SRCS += proto_conn.c
20
- SRCS += proto_crypt.c
21
- SRCS += proto_handshake.c
22
- SRCS += proto_pipe.c
23
- IDIRS += -I ../proto
24
-
25
- # Fundamental algorithms
26
- .PATH.c : ../libcperciva/alg
27
- SRCS += sha256.c
28
- IDIRS += -I ../libcperciva/alg
29
-
30
- # Data structures
31
- .PATH.c : ../libcperciva/datastruct
32
- SRCS += elasticarray.c
33
- SRCS += ptrheap.c
34
- SRCS += timerqueue.c
35
- IDIRS += -I ../libcperciva/datastruct
36
-
37
- # Utility functions
38
- .PATH.c : ../libcperciva/util
39
- SRCS += asprintf.c
40
- SRCS += entropy.c
41
- SRCS += insecure_memzero.c
42
- SRCS += monoclock.c
43
- SRCS += noeintr.c
44
- SRCS += sock.c
45
- SRCS += warnp.c
46
- IDIRS += -I ../libcperciva/util
47
-
48
- # CPU features detection
49
- .PATH.c : ../libcperciva/cpusupport
50
- SRCS += cpusupport_x86_aesni.c
51
- IDIRS += -I ../libcperciva/cpusupport
52
-
53
- # Event loop
54
- .PATH.c : ../libcperciva/events
55
- SRCS += events_immediate.c
56
- SRCS += events_network.c
57
- SRCS += events_network_selectstats.c
58
- SRCS += events_timer.c
59
- SRCS += events.c
60
- IDIRS += -I ../libcperciva/events
61
-
62
- # Event-driven networking
63
- .PATH.c : ../libcperciva/network
64
- SRCS += network_connect.c
65
- SRCS += network_read.c
66
- SRCS += network_write.c
67
- IDIRS += -I ../libcperciva/network
68
-
69
- # Crypto code
70
- .PATH.c : ../libcperciva/crypto
71
- SRCS += crypto_aes.c
72
- SRCS += crypto_aes_aesni.c
73
- SRCS += crypto_aesctr.c
74
- SRCS += crypto_dh.c
75
- SRCS += crypto_dh_group14.c
76
- SRCS += crypto_entropy.c
77
- SRCS += crypto_verify_bytes.c
78
- IDIRS += -I ../libcperciva/crypto
79
-
80
- crypto_aes_aesni.o: crypto_aes_aesni.c cpusupport-config.h
81
- . ./cpusupport-config.h; ${CC} ${CFLAGS} $${CFLAGS_X86_AESNI} -c $< -o $@
82
- cflags-crypto_aes_aesni.o=$${CFLAGS_X86_AESNI}
83
-
84
- # Debugging options
85
- CFLAGS += -g
86
- #CFLAGS += -DNDEBUG
87
- #CFLAGS += -DDEBUG
88
- #CFLAGS += -pg
89
-
90
- .include <bsd.prog.mk>
@@ -1,98 +0,0 @@
1
- # Program name.
2
- PROG = spiped
3
- MAN1 = ${PROG}.1
4
-
5
- # Libraries which are sometimes merged into libc
6
- LDADD = -lrt
7
- #LDADD += -lxnet # Missing on FreeBSD
8
-
9
- # Library code required
10
- LDADD_REQ = -lcrypto
11
- LDADD_REQ += -lpthread
12
-
13
- # spiped code
14
- SRCS = main.c
15
- SRCS += dispatch.c
16
-
17
- # spipe protocol
18
- .PATH.c : ../proto
19
- SRCS += proto_conn.c
20
- SRCS += proto_crypt.c
21
- SRCS += proto_handshake.c
22
- SRCS += proto_pipe.c
23
- IDIRS += -I ../proto
24
-
25
- # Fundamental algorithms
26
- .PATH.c : ../libcperciva/alg
27
- SRCS += sha256.c
28
- IDIRS += -I ../libcperciva/alg
29
-
30
- # Data structures
31
- .PATH.c : ../libcperciva/datastruct
32
- SRCS += elasticarray.c
33
- SRCS += ptrheap.c
34
- SRCS += timerqueue.c
35
- IDIRS += -I ../libcperciva/datastruct
36
-
37
- # DNS resolution
38
- .PATH.c : ../lib/dnsthread
39
- SRCS += dnsthread.c
40
- IDIRS += -I ../lib/dnsthread
41
-
42
- # Utility functions
43
- .PATH.c : ../libcperciva/util
44
- SRCS += asprintf.c
45
- SRCS += daemonize.c
46
- SRCS += entropy.c
47
- SRCS += insecure_memzero.c
48
- SRCS += monoclock.c
49
- SRCS += noeintr.c
50
- SRCS += sock.c
51
- SRCS += sock_util.c
52
- SRCS += warnp.c
53
- IDIRS += -I ../libcperciva/util
54
-
55
- # CPU features detection
56
- .PATH.c : ../libcperciva/cpusupport
57
- SRCS += cpusupport_x86_aesni.c
58
- IDIRS += -I ../libcperciva/cpusupport
59
-
60
- # Event loop
61
- .PATH.c : ../libcperciva/events
62
- SRCS += events_immediate.c
63
- SRCS += events_network.c
64
- SRCS += events_network_selectstats.c
65
- SRCS += events_timer.c
66
- SRCS += events.c
67
- IDIRS += -I ../libcperciva/events
68
-
69
- # Event-driven networking
70
- .PATH.c : ../libcperciva/network
71
- SRCS += network_accept.c
72
- SRCS += network_connect.c
73
- SRCS += network_read.c
74
- SRCS += network_write.c
75
- IDIRS += -I ../libcperciva/network
76
-
77
- # Crypto code
78
- .PATH.c : ../libcperciva/crypto
79
- SRCS += crypto_aes.c
80
- SRCS += crypto_aes_aesni.c
81
- SRCS += crypto_aesctr.c
82
- SRCS += crypto_dh.c
83
- SRCS += crypto_dh_group14.c
84
- SRCS += crypto_entropy.c
85
- SRCS += crypto_verify_bytes.c
86
- IDIRS += -I ../libcperciva/crypto
87
-
88
- crypto_aes_aesni.o: crypto_aes_aesni.c cpusupport-config.h
89
- . ./cpusupport-config.h; ${CC} ${CFLAGS} $${CFLAGS_X86_AESNI} -c $< -o $@
90
- cflags-crypto_aes_aesni.o=$${CFLAGS_X86_AESNI}
91
-
92
- # Debugging options
93
- CFLAGS += -g
94
- #CFLAGS += -DNDEBUG
95
- #CFLAGS += -DDEBUG
96
- #CFLAGS += -pg
97
-
98
- .include <bsd.prog.mk>