spiped 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/ext/spiped/extconf.rb +3 -0
  3. data/ext/spiped/spiped-source/BUILDING +46 -0
  4. data/ext/spiped/spiped-source/CHANGELOG +44 -0
  5. data/ext/spiped/spiped-source/COPYRIGHT +33 -0
  6. data/ext/spiped/spiped-source/Makefile +47 -0
  7. data/ext/spiped/spiped-source/Makefile.POSIX +27 -0
  8. data/ext/spiped/spiped-source/Makefile.inc +20 -0
  9. data/ext/spiped/spiped-source/Makefile.prog +23 -0
  10. data/ext/spiped/spiped-source/POSIX/README +10 -0
  11. data/ext/spiped/spiped-source/POSIX/posix-cflags.sh +10 -0
  12. data/ext/spiped/spiped-source/POSIX/posix-clock_realtime.c +3 -0
  13. data/ext/spiped/spiped-source/POSIX/posix-l.c +1 -0
  14. data/ext/spiped/spiped-source/POSIX/posix-l.sh +14 -0
  15. data/ext/spiped/spiped-source/POSIX/posix-msg_nosignal.c +3 -0
  16. data/ext/spiped/spiped-source/README +198 -0
  17. data/ext/spiped/spiped-source/STYLE +151 -0
  18. data/ext/spiped/spiped-source/lib/dnsthread/dnsthread.c +464 -0
  19. data/ext/spiped/spiped-source/lib/dnsthread/dnsthread.h +45 -0
  20. data/ext/spiped/spiped-source/libcperciva/alg/sha256.c +442 -0
  21. data/ext/spiped/spiped-source/libcperciva/alg/sha256.h +95 -0
  22. data/ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c +13 -0
  23. data/ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c +8 -0
  24. data/ext/spiped/spiped-source/libcperciva/cpusupport/Build/cpusupport.sh +37 -0
  25. data/ext/spiped/spiped-source/libcperciva/cpusupport/cpusupport.h +63 -0
  26. data/ext/spiped/spiped-source/libcperciva/cpusupport/cpusupport_x86_aesni.c +30 -0
  27. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aes.c +166 -0
  28. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aes.h +31 -0
  29. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aes_aesni.c +229 -0
  30. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aes_aesni.h +31 -0
  31. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aesctr.c +124 -0
  32. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_aesctr.h +41 -0
  33. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_dh.c +293 -0
  34. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_dh.h +43 -0
  35. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_dh_group14.c +46 -0
  36. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_dh_group14.h +9 -0
  37. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_entropy.c +215 -0
  38. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_entropy.h +14 -0
  39. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_verify_bytes.c +21 -0
  40. data/ext/spiped/spiped-source/libcperciva/crypto/crypto_verify_bytes.h +14 -0
  41. data/ext/spiped/spiped-source/libcperciva/datastruct/elasticarray.c +276 -0
  42. data/ext/spiped/spiped-source/libcperciva/datastruct/elasticarray.h +167 -0
  43. data/ext/spiped/spiped-source/libcperciva/datastruct/mpool.h +85 -0
  44. data/ext/spiped/spiped-source/libcperciva/datastruct/ptrheap.c +334 -0
  45. data/ext/spiped/spiped-source/libcperciva/datastruct/ptrheap.h +89 -0
  46. data/ext/spiped/spiped-source/libcperciva/datastruct/timerqueue.c +241 -0
  47. data/ext/spiped/spiped-source/libcperciva/datastruct/timerqueue.h +60 -0
  48. data/ext/spiped/spiped-source/libcperciva/events/events.c +203 -0
  49. data/ext/spiped/spiped-source/libcperciva/events/events.h +106 -0
  50. data/ext/spiped/spiped-source/libcperciva/events/events_immediate.c +149 -0
  51. data/ext/spiped/spiped-source/libcperciva/events/events_internal.h +95 -0
  52. data/ext/spiped/spiped-source/libcperciva/events/events_network.c +347 -0
  53. data/ext/spiped/spiped-source/libcperciva/events/events_network_selectstats.c +106 -0
  54. data/ext/spiped/spiped-source/libcperciva/events/events_timer.c +273 -0
  55. data/ext/spiped/spiped-source/libcperciva/network/network.h +95 -0
  56. data/ext/spiped/spiped-source/libcperciva/network/network_accept.c +103 -0
  57. data/ext/spiped/spiped-source/libcperciva/network/network_connect.c +258 -0
  58. data/ext/spiped/spiped-source/libcperciva/network/network_read.c +155 -0
  59. data/ext/spiped/spiped-source/libcperciva/network/network_write.c +188 -0
  60. data/ext/spiped/spiped-source/libcperciva/util/asprintf.c +49 -0
  61. data/ext/spiped/spiped-source/libcperciva/util/asprintf.h +16 -0
  62. data/ext/spiped/spiped-source/libcperciva/util/daemonize.c +134 -0
  63. data/ext/spiped/spiped-source/libcperciva/util/daemonize.h +10 -0
  64. data/ext/spiped/spiped-source/libcperciva/util/entropy.c +76 -0
  65. data/ext/spiped/spiped-source/libcperciva/util/entropy.h +13 -0
  66. data/ext/spiped/spiped-source/libcperciva/util/imalloc.h +33 -0
  67. data/ext/spiped/spiped-source/libcperciva/util/insecure_memzero.c +19 -0
  68. data/ext/spiped/spiped-source/libcperciva/util/insecure_memzero.h +33 -0
  69. data/ext/spiped/spiped-source/libcperciva/util/monoclock.c +52 -0
  70. data/ext/spiped/spiped-source/libcperciva/util/monoclock.h +14 -0
  71. data/ext/spiped/spiped-source/libcperciva/util/noeintr.c +54 -0
  72. data/ext/spiped/spiped-source/libcperciva/util/noeintr.h +14 -0
  73. data/ext/spiped/spiped-source/libcperciva/util/sock.c +472 -0
  74. data/ext/spiped/spiped-source/libcperciva/util/sock.h +56 -0
  75. data/ext/spiped/spiped-source/libcperciva/util/sock_internal.h +14 -0
  76. data/ext/spiped/spiped-source/libcperciva/util/sock_util.c +271 -0
  77. data/ext/spiped/spiped-source/libcperciva/util/sock_util.h +51 -0
  78. data/ext/spiped/spiped-source/libcperciva/util/sysendian.h +146 -0
  79. data/ext/spiped/spiped-source/libcperciva/util/warnp.c +76 -0
  80. data/ext/spiped/spiped-source/libcperciva/util/warnp.h +59 -0
  81. data/ext/spiped/spiped-source/proto/proto_conn.c +362 -0
  82. data/ext/spiped/spiped-source/proto/proto_conn.h +25 -0
  83. data/ext/spiped/spiped-source/proto/proto_crypt.c +396 -0
  84. data/ext/spiped/spiped-source/proto/proto_crypt.h +102 -0
  85. data/ext/spiped/spiped-source/proto/proto_handshake.c +330 -0
  86. data/ext/spiped/spiped-source/proto/proto_handshake.h +30 -0
  87. data/ext/spiped/spiped-source/proto/proto_pipe.c +202 -0
  88. data/ext/spiped/spiped-source/proto/proto_pipe.h +23 -0
  89. data/ext/spiped/spiped-source/spipe/Makefile +90 -0
  90. data/ext/spiped/spiped-source/spipe/README +24 -0
  91. data/ext/spiped/spiped-source/spipe/main.c +178 -0
  92. data/ext/spiped/spiped-source/spipe/pushbits.c +101 -0
  93. data/ext/spiped/spiped-source/spipe/pushbits.h +10 -0
  94. data/ext/spiped/spiped-source/spipe/spipe.1 +60 -0
  95. data/ext/spiped/spiped-source/spiped/Makefile +98 -0
  96. data/ext/spiped/spiped-source/spiped/README +62 -0
  97. data/ext/spiped/spiped-source/spiped/dispatch.c +214 -0
  98. data/ext/spiped/spiped-source/spiped/dispatch.h +27 -0
  99. data/ext/spiped/spiped-source/spiped/main.c +267 -0
  100. data/ext/spiped/spiped-source/spiped/spiped.1 +112 -0
  101. data/lib/spiped.rb +3 -0
  102. metadata +143 -0
@@ -0,0 +1,112 @@
1
+ .\"-
2
+ .\" Copyright (c) 2012 Andreas Olsson
3
+ .\"
4
+ .\" Redistribution and use in source and binary forms, with or without
5
+ .\" modification, are permitted provided that the following conditions
6
+ .\" are met:
7
+ .\" 1. Redistributions of source code must retain the above copyright
8
+ .\" notice, this list of conditions and the following disclaimer.
9
+ .\" 2. Redistributions in binary form must reproduce the above copyright
10
+ .\" notice, this list of conditions and the following disclaimer in the
11
+ .\" documentation and/or other materials provided with the distribution.
12
+ .\"
13
+ .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14
+ .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15
+ .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16
+ .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17
+ .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18
+ .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19
+ .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20
+ .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21
+ .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22
+ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23
+ .\" SUCH DAMAGE.
24
+ .TH SPIPED 1 "April 2, 2013" "spiped 1.3.0" "spiped README"
25
+ .SH NAME
26
+ spiped \- secure pipe daemon
27
+ .SH SYNOPSIS
28
+ .B spiped
29
+ {\-e | \-d} \-s <source socket>
30
+ \-t <target socket>
31
+ \-k <key file>
32
+ .br
33
+ [\-DFj]
34
+ [\-f | \-g]
35
+ [\-n <max # connections>]
36
+ [\-o <connection timeout>]
37
+ [\-p <pidfile>]
38
+ [\-r <rtime> | \-R]
39
+ .SH OPTIONS
40
+ .TP
41
+ .B \-e
42
+ Take unencrypted connections from the source socket and send
43
+ encrypted connections to the target socket.
44
+ .TP
45
+ .B \-d
46
+ Take encrypted connections from the source socket and send
47
+ unencrypted connections to the target socket.
48
+ .TP
49
+ .B \-s <source socket>
50
+ Address on which spiped should listen for incoming connections.
51
+ Must be in one of the following formats:
52
+ /absolute/path/to/unix/socket
53
+ host.name:port
54
+ [ip.v4.ad.dr]:port
55
+ [ipv6::addr]:port
56
+ Note that hostnames are resolved when spiped is launched and are not
57
+ re\-resolved later; thus if DNS entries change spiped will continue to
58
+ connect to the expired address.
59
+ .TP
60
+ .B \-t <target socket>
61
+ Address to which spiped should connect.
62
+ .TP
63
+ .B \-k <key file>
64
+ Use the provided key file to authenticate and encrypt.
65
+ .TP
66
+ .B \-D
67
+ Wait for DNS. Normally when spiped is launched it resolves addresses
68
+ and binds to its source socket before the parent process returns; with
69
+ this option it will daemonize first and retry failed DNS lookups until
70
+ they succeed. This allows spiped to launch even if DNS isn't set up
71
+ yet, but at the expense of losing the guarantee that once spiped has
72
+ finished launching it will be ready to create pipes.
73
+ .TP
74
+ .B \-f
75
+ Use fast/weak handshaking: This reduces the CPU time spent in the
76
+ initial connection setup, at the expense of losing perfect forward
77
+ secrecy.
78
+ .TP
79
+ .B \-g
80
+ Require perfect forward secrecy by dropping connections if the other
81
+ host is using the -f option.
82
+ .TP
83
+ .B \-F
84
+ Run in foreground. This can be useful with systems like daemontools.
85
+ .TP
86
+ .B \-j
87
+ Disable transport layer keep-alives.
88
+ (By default they are enabled.)
89
+ .TP
90
+ .B \-n <max # connections>
91
+ Limit on the number of simultaneous connections allowed.
92
+ This value must be between 1 and 500.
93
+ Defaults to 100 connections.
94
+ .TP
95
+ .B \-o <connection timeout>
96
+ Timeout, in seconds, after which an attempt to connect to the target
97
+ or a protocol handshake will be aborted (and the connection dropped)
98
+ if not completed. Defaults to 5s.
99
+ .TP
100
+ .B \-p <pidfile>
101
+ File to which spiped's process ID should be written. Defaults to
102
+ <source socket>.pid (in the current directory if <source socket> is
103
+ not an absolute path).
104
+ .TP
105
+ .B \-r <rtime>
106
+ Re-resolve the address of <target socket> every <rtime> seconds.
107
+ Defaults to re-resolution every 60 seconds.
108
+ .TP
109
+ .B \-R
110
+ Disable target address re-resolution.
111
+ .SH SEE ALSO
112
+ .BR spipe (1).
data/lib/spiped.rb ADDED
@@ -0,0 +1,3 @@
1
+ class Spiped
2
+ Version = "0.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spiped
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian P O'Rourke
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: simple wrapper that just downloads and installs spiped
14
+ email: bpo@somnambulance.net
15
+ executables: []
16
+ extensions:
17
+ - ext/spiped/extconf.rb
18
+ extra_rdoc_files: []
19
+ files:
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
119
+ - lib/spiped.rb
120
+ homepage: https://github.com
121
+ licenses: []
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.0.3
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: spiped wrapper for ruby
143
+ test_files: []