Snippets

GEORGE LIU dhparam patch for openlitespeed 1.4.6 https://groups.google.com/forum/#!topic/openlitespeed-development/AXbNNsyppEI

Created by GEORGE LIU
diff --git src/sslpp/sslcontext.cpp src/sslpp/sslcontext.cpp 
index 00ea34d..b56b71f 100644 
--- src/sslpp/sslcontext.cpp 
+++ src/sslpp/sslcontext.cpp 
@@ -1180,7 +1180,7 @@ SSLContext *SSLContext::config(const XmlNode *pNode) 
         const char *pDHParam = pNode->getChildValue("DHParam"); 
         if (pDHParam) 
         { 
-            if (ConfigCtx::getCurConfigCtx()->getValidPath(achCAPath, 
pDHParam, 
+            if (ConfigCtx::getCurConfigCtx()->getValidFile(achCAPath, 
pDHParam, 
                     "DH Parameter file") != 0) 
             { 
                 ConfigCtx::getCurConfigCtx()->logWarn("invalid path for 
DH paramter: %s, ignore and use built-in DH parameter!", 

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.