зеркало из https://github.com/mozilla/gecko-dev.git
Add new function for getting the version string that can be used by
Mozilla.
This commit is contained in:
Родитель
6086d6afa6
Коммит
834423c3ba
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче