r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Schemes] Implementors guide

Steeve
12-Jan-2010
[1305]
Small optimization:


Graham, if you try to connect to a host with an ip as a string, then 
a DNS lookup is performed even if it's useless.

On the other side, if you provide an ip as a tuple, no lookup is 
performed and it's a straight connection.


So as an example, when you enter in PASV mode (ftp proto) try this 
instead.

data-address: to-tuple to-block form copy/part tmp 4
Graham
12-Jan-2010
[1306]
so I put the open port where?
Steeve
12-Jan-2010
[1307]
you don't need to, the first attempt is the right one
Graham
12-Jan-2010
[1308]
oh .. yeah ... ok. Good point.
Steeve
12-Jan-2010
[1309]
you will receive a connect event but no lookup
Graham
12-Jan-2010
[1310x3]
works
Uploaded latest version with this change, and the STOR command .. 
just in time for bed!
not much else to do .. just delete, create directory, rename .... 
and append to existing file
Steeve
12-Jan-2010
[1313]
i just wake up :-)
Graham
12-Jan-2010
[1314x3]
oh .. and then create the higher abstraction so that it supports 
the R2 of of reading and writing files ...
I just sent you an awake handler!
Anyone else where interested in helping polishing up these schemes?
Pekr
12-Jan-2010
[1317]
Graham - we have all world REBOL developers here ... 5-10 ... so 
basically yes, we are interested, just pressed for the time :-)
eFishAnt
12-Jan-2010
[1318]
so the old read-io of R2 ... is it just now read in R3?  Or must 
I know more than that?  I am porting my product to R3, so I am trying 
to get that part figured.  It's almost running now, besides this 
(maybe...fingers crossed)
Graham
12-Jan-2010
[1319x3]
just read ...
prot-send.r is just a function and not a scheme.  But it relies on 
system objects such as email ...  I guess we can include these in 
the function until some decision is made about where they should 
go.
The lack of TLS and SSL is going to be a big problem since so many 
people now use secure protocols.
eFishAnt
12-Jan-2010
[1322]
R2 2.7.7 has mention in notes about TLS SSL.  My question is what 
is the test case these were tried on?  I just want to verify they 
work in R2.
Graham
12-Jan-2010
[1323]
This is R3 group.
eFishAnt
12-Jan-2010
[1324]
I know, but a good point for heading in R3...use a common test case 
between the 2.
BrianH
12-Jan-2010
[1325]
It's unlikely that tests would be portable - the port model is completely 
different in R3.
eFishAnt
12-Jan-2010
[1326]
Understand all that.  Just what was done in 2.7.7 to test it?  I 
have tried without success.
Graham
12-Jan-2010
[1327x5]
http://www.gnu.org/software/gnutls/
Lesser GPL ... can this work?
Are there any issues with the lesser GPL and the open host kit?
Or, would this be core RT stuff ...?
GNU TLS supports

Certificate types:	X.509, OPENPGP
Protocols:	TLS1.2, TLS1.1, TLS1.0, SSL3.0

Ciphers:	AES-256-CBC, AES-128-CBC, 3DES-CBC, CAMELLIA-128, CAMELLIA-256, 
ARCFOUR, ARCFOUR-40
MACs:	SHA512, SHA384, SHA256, SHA1, RMD160, MD5

Key exchange algorithms:	RSA, RSA-EXPORT, DHE-DSS, DHE-RSA, DHE-PSK, 
PSK, SRP, SRP-RSA, SRP-DSS, ANON-DH
Compression methods:	DEFLATE, LZO, NULL

Extensions:	Max record size, Cert Type (OpenPGP), Server Name, SRP, 
TLS/IA, Opaque PRF Input
SHA256 ...need this for Amazon signing ...
BrianH
12-Jan-2010
[1332x2]
No GPL stuff can be included in the host kit.
Not even LGPL.
Graham
12-Jan-2010
[1334]
not even if you compile it in yourself??
BrianH
12-Jan-2010
[1335x2]
Only if you write it yourself and relicense it. No point to including 
it otherwise. In theory you could dynamicly link LGPL or Classpath 
code to the host, but you can't staticly link or otherwise incorporate 
it and distribute it. If you can't distribute it, there's no point 
in using the code.
Stick with BSD or similar licenses, like OpenSSL or the Putty SSL 
stack.
Maxim
12-Jan-2010
[1337]
putty is the best place to start work on adding SSL to R3.  its all 
there, in MIT it is 100% stand alone and the code is compact and 
clean.
BrianH
12-Jan-2010
[1338x2]
The only tricks are to see if it has proper TLS support and whether 
it is suceptible to the recently discovered SSL/TLS protocol vulns.
Putty hasn't been updated in a while and never reached 1.0. Still, 
I agree that it is the best bet.
Graham
12-Jan-2010
[1340]
I wonder why Carl can't reuse the r2 code ...
BrianH
12-Jan-2010
[1341x2]
Because noone understands it, it doesn't do what we need it to, and 
the port model is different.
And it hasn't been updated in longer than Putty.
Graham
12-Jan-2010
[1343]
Hmm... sounds a serious lapse to let code no one understands be placed 
into r/command ...
BrianH
12-Jan-2010
[1344]
It works as well as it always has, and it went in when the developer 
(Holger) was still working for RT.
Maxim
12-Jan-2010
[1345x2]
I looked at the putty code about a year ago... and If it had compiled 
under DevC I would have played around with it... now that I've got 
MSVC, I should be able to build the sources... maybe we could just 
repackage the executable loader as a DLL.  it should be too much 
work.
shouldn't
Graham
12-Jan-2010
[1347]
I thought you were doing other stuff?
Maxim
12-Jan-2010
[1348x2]
yes I am... but just thinking out loud... if someone really needs 
it how one could approach the project.
the putty code was very nice, and well documented on top of it.
Graham
12-Jan-2010
[1350x2]
What are you working on now?
I think having SSL is essential ..
Maxim
12-Jan-2010
[1352]
the C language parser, although I haven't done a lot in more than 
a week.  with university starting up and wanting to use up my last 
days of vacation.
Graham
12-Jan-2010
[1353]
university???
Maxim
12-Jan-2010
[1354]
yep.  Visual Arts, part time (although this semester I am doing a 
full time semester, since the courses I took are easy for me).