[Pkg-kde-bugs-fwd] [Bug 98788] Possible solution to IDN domain spoofing/phising

Waldo Bastian 98788@bugs.kde.org
4 Mar 2005 11:53:17 -0000


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=98788         




------- Additional Comments From bastian kde org  2005-03-04 12:53 -------
CVS commit by waba: 

Match certificate based on the punycode versionof the hostname
CCBUG: 98788


  M +7 -0      ksslpeerinfo.cc   1.47


--- kdelibs/kio/kssl/ksslpeerinfo.cc  #1.46:1.47
 @ -31,4 +31,7  @
 #include <kextsock.h>
 #include <netsupp.h>
+#ifndef Q_WS_WIN //TODO kresolver not ported
+#include "kresolver.h"
+#endif
 
 #include "ksslx509map.h"
 @ -60,5 +63,9  @ void KSSLPeerInfo::setPeerHost(QString r
                 d->peerHost.truncate(d->peerHost.length()-1);
 
+#ifdef Q_WS_WIN //TODO kresolver not ported
         d->peerHost = d->peerHost.lower();
+#else   
+        d->peerHost = QString::fromLatin1(KNetwork::KResolver::domainToAscii(d->peerHost.lower()));
+#endif  
 }