New topic: 

Check OpenSSL version on host

<http://forums.realsoftware.com/viewtopic.php?t=40176>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Akiland          Post subject: Check OpenSSL version on 
hostPosted: Sun Aug 07, 2011 4:36 am                         
Joined: Tue Jan 04, 2011 3:02 am
Posts: 271                Hey all,
I've built an authentication system for my web apps that uses custom 
certificates and has OpenSSL as a requirement on the hosting server.
When checking the version of an installed OpenSSL build I do the following, do 
you know if this would be a sufficient way to check to see if a newer version 
than 0.8.0 is installed?
Code:  Dim sh as New Shell
  Dim s as String
  
  sh.Execute("openssl version -v")
  s = sh.Result
  sh.Close
  
  if Left(s, 7) = "OpenSSL" then
  if Left(NthField(NthField(s, "OpenSSL ", 2), " ", 1), 5) < "0.8.0" then
  //OpenSSL check passed, doff on.
  else
  //OpenSSL version older than 0.8.0
  end if
  else
  //OpenSSL not installed
  end if      
_________________
Bixue Kommunikation
Dev. iMac 27" (2.8GHz Intel Core i7, 12GB RAM) OS X 10.6.8
REAL.Studio Web Edition  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to