Hey

I'd like to suggest that we add a libssh2_version() function that returns 
information about the lib. I just noticed how debian unstable got a fresh 
libssh2 1.0, but curl is still thinking it is 0.18 since it got the version 
number at build-time instead of run-time.

So I would like to see a libssh2_version() function that returns the version 
number of libssh2, and some info about what it has been built to use.

Perhaps:

  struct libssh2_version_info {
     int age;        /* always 0 in this struct layout */
     int vernum;     /* the 24bit number from the header file */
     char *version;  /* pointer to a human readable string */

     char *ssllib;   /* pointer to a human readable string about the SSL lib
                        and version */
     char *libz;     /* poitner to a humanb readable libz string */
  }

  struct libssh2_version_info *libssh2_version(void);


Is there any additional info we should add in there already from the start?

-- 

  / daniel.haxx.se

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to