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

Mozilla.
This commit is contained in:
javi%netscape.com 2000-05-17 00:17:42 +00:00
Родитель 6086d6afa6
Коммит 834423c3ba
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -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;
}
/*************************************************************
*

Просмотреть файл

@ -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