Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a878a99f
提交
a878a99f
authored
6月 22, 2010
作者:
Viktor Krikun
提交者:
Travis Cross
3月 31, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changes for Zfone on Windows x64
上级
50819e69
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
92 行增加
和
75 行删除
+92
-75
zrtp_config.h
include/zrtp_config.h
+2
-0
zrtp_config_user.h
include/zrtp_config_user.h
+9
-1
zrtp_config_win.h
include/zrtp_config_win.h
+72
-68
zrtp_iface_cache.h
include/zrtp_iface_cache.h
+9
-6
没有找到文件。
include/zrtp_config.h
浏览文件 @
a878a99f
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
# elif defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__TOS_WIN__)
# elif defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__TOS_WIN__)
# if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK)
# if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK)
# define ZRTP_PLATFORM ZP_WIN32_KERNEL
# define ZRTP_PLATFORM ZP_WIN32_KERNEL
# elif defined(_WIN64)
# define ZRTP_PLATFORM ZP_WIN32
# else
# else
# define ZRTP_PLATFORM ZP_WIN32
# define ZRTP_PLATFORM ZP_WIN32
# endif
# endif
...
...
include/zrtp_config_user.h
浏览文件 @
a878a99f
...
@@ -110,7 +110,15 @@
...
@@ -110,7 +110,15 @@
#endif
#endif
#ifndef ZRTP_USE_BUILTIN_CACHE
#ifndef ZRTP_USE_BUILTIN_CACHE
#define ZRTP_USE_BUILTIN_CACHE 1
# if defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__TOS_WIN__)
# if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK)
# define ZRTP_USE_BUILTIN_CACHE 1
# else
# define ZRTP_USE_BUILTIN_CACHE 0
# endif
# else
# define ZRTP_USE_BUILTIN_CACHE 1
# endif
#endif
#endif
#ifndef ZRTP_ENABLE_EC
#ifndef ZRTP_ENABLE_EC
...
...
include/zrtp_config_win.h
浏览文件 @
a878a99f
/*
/*
* libZRTP SDK library, implements the ZRTP secure VoIP protocol.
* libZRTP SDK library, implements the ZRTP secure VoIP protocol.
* Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
* Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
* Contact: http://philzimmermann.com
* Contact: http://philzimmermann.com
* For licensing and other legal details, see the file zrtp_legal.c.
* For licensing and other legal details, see the file zrtp_legal.c.
*
*
* Viktor Krykun <v.krikun at zfoneproject.com>
* Viktor Krykun <v.krikun at zfoneproject.com>
*/
*/
#ifndef ZRTP_WIN_CONFIG_H__
#ifndef ZRTP_WIN_CONFIG_H__
#define ZRTP_WIN_CONFIG_H__
#define ZRTP_WIN_CONFIG_H__
#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable: 4068)
#pragma warning(disable: 4068)
/*
#if !(defined(__BUILDMACHINE__) && __BUILDMACHINE__ == WinDDK)
* Used to map system integer types to zrtp integer definitions.
#include <Windows.h>
* Define to 1 if you have the <inttypes.h> header file.
#endif
*/
#undef ZRTP_HAVE_INTTYPES_H
/*
* Used to map system integer types to zrtp integer definitions.
#define ZRTP_HAVE_STRING_H 1
* Define to 1 if you have the <inttypes.h> header file.
*/
/*
#undef ZRTP_HAVE_INTTYPES_H
* This header is needed for operations with binary file in deefault realization
* of the secrets' cache. Can be eliminated if default cache isn't used.
#define ZRTP_HAVE_STRING_H 1
* Define to 1 if you have the <stdio.h> header file.
*/
/*
#ifndef ZRTP_HAVE_STDIO_H
* This header is needed for operations with binary file in deefault realization
# define ZRTP_HAVE_STDIO_H 1
* of the secrets' cache. Can be eliminated if default cache isn't used.
#endif
* Define to 1 if you have the <stdio.h> header file.
*/
#ifndef ZRTP_HAVE_STDARG_H
#ifndef ZRTP_HAVE_STDIO_H
# define ZRTP_HAVE_STDARG_H 1
# define ZRTP_HAVE_STDIO_H 1
#endif
#endif
/*
#ifndef ZRTP_HAVE_STDARG_H
* Used by bnlib, but we don't need this on Windows platform.
# define ZRTP_HAVE_STDARG_H 1
*/
#endif
#ifndef NO_ASSERT_H
#define NO_ASSERT_H 1
/*
#endif
* Used by bnlib, but we don't need this on Windows platform.
*/
/*
#ifndef NO_ASSERT_H
* Used by bnlib. We have stdlib in any Windows platform - set it to 1.
#define NO_ASSERT_H 1
*/
#endif
#ifndef NO_STDLIB_H
#define NO_STDLIB_H 0
/*
#endif
* Used by bnlib. We have stdlib in any Windows platform - set it to 1.
*/
#ifndef NO_STDLIB_H
#define ZRTP_HAVE_INT64_T 0
#define NO_STDLIB_H 0
#define ZRTP_HAVE_INT32_T 0
#endif
#define ZRTP_HAVE_INT16_T 0
#define ZRTP_HAVE_INT8_T 0
#define ZRTP_HAVE_INT64_T 0
#define ZRTP_HAVE_UINT64_T 0
#define ZRTP_HAVE_INT32_T 0
#define ZRTP_HAVE_UINT32_T 0
#define ZRTP_HAVE_INT16_T 0
#define ZRTP_HAVE_UINT16_T 0
#define ZRTP_HAVE_INT8_T 0
#define ZRTP_HAVE_UINT8_T 0
#define ZRTP_HAVE_UINT64_T 0
#define SIZEOF_UNSIGNED_LONG 4
#define ZRTP_HAVE_UINT32_T 0
#define SIZEOF_UNSIGNED_LONG_LONG 8
#define ZRTP_HAVE_UINT16_T 0
#define ZRTP_HAVE_UINT8_T 0
#define ZRTP_INLINE static __inline
#define SIZEOF_UNSIGNED_LONG 4
#define ZRTP_VERSION "0.90"
#define SIZEOF_UNSIGNED_LONG_LONG 8
#define ZRTP_INLINE static __inline
#endif
/* ZRTP_WIN_CONFIG_H__ */
#define ZRTP_VERSION "0.90"
#endif
/* ZRTP_WIN_CONFIG_H__ */
include/zrtp_iface_cache.h
浏览文件 @
a878a99f
...
@@ -16,13 +16,13 @@
...
@@ -16,13 +16,13 @@
#include "zrtp_error.h"
#include "zrtp_error.h"
#include "zrtp_iface.h"
#include "zrtp_iface.h"
#if defined(ZRTP_USE_BUILTIN_CACHE) && (ZRTP_USE_BUILTIN_CACHE == 1)
#if defined(__cplusplus)
#if defined(__cplusplus)
extern
"C"
extern
"C"
{
{
#endif
#endif
#if defined(ZRTP_USE_BUILTIN_CACHE) && (ZRTP_USE_BUILTIN_CACHE == 1)
#define ZRTP_DEF_CACHE_VERSION_STR "libZRTP cache version="
#define ZRTP_DEF_CACHE_VERSION_STR "libZRTP cache version="
#define ZRTP_DEF_CACHE_VERSION_VAL "1.0"
#define ZRTP_DEF_CACHE_VERSION_VAL "1.0"
...
@@ -58,7 +58,8 @@ typedef struct zrtp_cache_elem
...
@@ -58,7 +58,8 @@ typedef struct zrtp_cache_elem
mlist_t
_mlist
;
mlist_t
_mlist
;
}
zrtp_cache_elem_t
;
}
zrtp_cache_elem_t
;
#endif
/* ZRTP_USE_BUILTIN_CACHE */
zrtp_status_t
zrtp_def_cache_init
(
zrtp_global_t
*
zrtp
);
zrtp_status_t
zrtp_def_cache_init
(
zrtp_global_t
*
zrtp
);
void
zrtp_def_cache_down
();
void
zrtp_def_cache_down
();
...
@@ -97,6 +98,7 @@ zrtp_status_t zrtp_def_cache_get_presh_counter( const zrtp_stringn_t* one_zid,
...
@@ -97,6 +98,7 @@ zrtp_status_t zrtp_def_cache_get_presh_counter( const zrtp_stringn_t* one_zid,
const
zrtp_stringn_t
*
another_zid
,
const
zrtp_stringn_t
*
another_zid
,
uint32_t
*
counter
);
uint32_t
*
counter
);
#if defined(ZRTP_USE_BUILTIN_CACHE) && (ZRTP_USE_BUILTIN_CACHE == 1)
/**
/**
* @brief Cache iterator
* @brief Cache iterator
* zrtp_def_cache_foreach() calls this function for every cache entry.
* zrtp_def_cache_foreach() calls this function for every cache entry.
...
@@ -124,6 +126,8 @@ void zrtp_def_cache_foreach( zrtp_global_t *global,
...
@@ -124,6 +126,8 @@ void zrtp_def_cache_foreach( zrtp_global_t *global,
int
is_mitm
,
int
is_mitm
,
zrtp_cache_callback_t
callback
,
zrtp_cache_callback_t
callback
,
void
*
data
);
void
*
data
);
#endif
/* ZRTP_USE_BUILTIN_CACHE */
/**
/**
* @brief Store shared secrets cache to the persistent storage
* @brief Store shared secrets cache to the persistent storage
...
@@ -151,14 +155,13 @@ zrtp_status_t zrtp_def_cache_put_name( const zrtp_stringn_t* one_zid,
...
@@ -151,14 +155,13 @@ zrtp_status_t zrtp_def_cache_put_name( const zrtp_stringn_t* one_zid,
const
zrtp_stringn_t
*
another_zid
,
const
zrtp_stringn_t
*
another_zid
,
const
zrtp_stringn_t
*
name
);
const
zrtp_stringn_t
*
name
);
#if defined(ZRTP_USE_BUILTIN_CACHE) && (ZRTP_USE_BUILTIN_CACHE == 1)
zrtp_cache_elem_t
*
zrtp_def_cache_get2
(
const
zrtp_cache_id_t
id
,
int
is_mitm
);
zrtp_cache_elem_t
*
zrtp_def_cache_get2
(
const
zrtp_cache_id_t
id
,
int
is_mitm
);
#endif
/* ZRTP_USE_BUILTIN_CACHE */
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
#endif
/* ZRTP_USE_BUILTIN_CACHE */
#endif
/*__ZRTP_IFACE_CACHE_H__*/
#endif
/*__ZRTP_IFACE_CACHE_H__*/
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论