Commit 559e7507 authored by Simon Morlat's avatar Simon Morlat

set correct bzrtp identifier

parent fa20bae3
......@@ -128,8 +128,8 @@ typedef struct bzrtpCallbacks_struct {
#define ZRTP_MAGIC_COOKIE 0x5a525450
#define ZRTP_VERSION "1.10"
/*#define ZRTP_CLIENT_IDENTIFIER "LINPHONEZRTP0.01"*/
#define ZRTP_CLIENT_IDENTIFIER "LINPHONE-ZRTPCPP"
#define ZRTP_CLIENT_IDENTIFIER "BZRTP"
/* error code definition */
#define BZRTP_ERROR_INVALIDCALLBACKID 0x0001
......
......@@ -1095,7 +1095,7 @@ bzrtpPacket_t *bzrtp_createZrtpPacket(bzrtpContext_t *zrtpContext, bzrtpChannelC
memset(zrtpHelloMessage, 0, sizeof(bzrtpHelloMessage_t));
/* initialise some fields using zrtp context data */
memcpy(zrtpHelloMessage->version, ZRTP_VERSION, 4);
memcpy(zrtpHelloMessage->clientIdentifier, ZRTP_CLIENT_IDENTIFIER, 16);
strncpy((char*)zrtpHelloMessage->clientIdentifier, ZRTP_CLIENT_IDENTIFIER, 16);
memcpy(zrtpHelloMessage->H3, zrtpChannelContext->selfH[3], 32);
memcpy(zrtpHelloMessage->ZID, zrtpContext->selfZID, 12);
/* set all S,M,P flags to zero as we're not able to verify signatures, we're not a PBX(TODO: implement?), we're not passive */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment