Hi folks,

Recently, ICCF changed to a secured server for xfcc Correspondence Chess. 

There wasn't a notice sent, but I quickly figured this out because sicd doesn't 
support secure xfcc connections :-)
After communicating with ICCF support, they have changed their xfcc url to:
https://www.iccf.com/xfccbasic.asmx


I wrote a patch for "correspondence.tcl" that adds https support, but it should 
be reviewed. 
Apologies if this isn't the best way to receive patches, I tried to access the 
"How to create patches" link in the wiki, but received: Error 403: Create 
access required

scid-code/tcl/tools/correspondence.tcl

%> diff -u correspondence-old.tcl correspondence.tcl
--- correspondence-old.tcl    2014-08-03 12:02:54.000000000 -0500
+++ correspondence.tcl    2014-08-03 11:38:50.000000000 -0500
@@ -458,6 +458,17 @@
             append xmlmessage ""
         append xmlmessage $::Xfcc::SOAPend
 
+        #-----------------------------------------------------------
+        # https check 
+        # using default port of 443, but should be configurable
+        #
+        if {[regexp -nocase ^(https://)(.*) $uri]} {
+            package require http
+            package require tls
+            http::register https 443 ::tls::socket
+        }
+        #-----------------------------------------------------------
+    
         # send it to the web service note the space before the charset
         set token [::http::geturl $uri \
                         -type "text/xml; charset=\"utf-8\"" \

%>


Here is my xfccrc file of both unsecured and secure xfcc links:

%> more ~/.scid/config/xfccrc 
<?xml version="1.0" encoding="utf-8"?>
<xfcc>
        <server>
                <name>SchemingMind</name>
                <uri>http://www.schemingmind.com/xfcc/xfccbasic.asmx</uri>
                <user>wrathko</user>
                <pass>xxxx</pass>
                <rating>USCF</rating>
        </server>
        <server>
                <name>ICCF</name>
                <uri>https://www.iccf.com/xfccbasic.asmx</uri>
                <user>515708</user>
                <pass>xxxx</pass>
                <rating>USCF</rating>
        </server>
</xfcc>



SCID is a great product, please let me know if I can help further!




ah.

Andrew Hunt
Wolf Song Design
a...@wolfsong.com; http://www.wolfsong.com/
-------------------------------------------------------=

Power corrupts.  Absolute power is kind of neat.
-- John Lehman, Secretary of the Navy, 1981-1987





------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to