Add new function for getting the version string that can be used by

Mozilla.


git-svn-id: svn://10.0.0.236/trunk@70200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
javi%netscape.com
2000-05-17 00:17:42 +00:00
parent b02cdb4f40
commit 0358170951
2 changed files with 21 additions and 0 deletions

View File

@@ -62,6 +62,20 @@ CMT_Free_fn cmt_free = free;
#define CM_ntohl ntohl
#define CM_htonl htonl
char* SSM_GetVersionString(void)
{
char *newString;
int strLen;
strLen = strlen(SSMVersionString);
newString = (char*)malloc(sizeof(char)*(strLen+1));
if (newString) {
memcpy(newString,SSMVersionString, strlen(SSMVersionString));
newString[strLen]='\0';
}
return newString;
}
/*************************************************************
*

View File

@@ -305,6 +305,13 @@ typedef CMUint32 SSMSSLConnectionRequestType;
* library.
*/
extern char SSMVersionString[];
#ifdef __cplusplus
extern "C" {
char * SSM_GetVersionString(void);
#endif
#ifdef __cplusplus
}
#endif
/* What type of client */
typedef enum