Changeset 1718
- Timestamp:
- Jan 19, 2008 3:51:56 PM (17 years ago)
- Location:
- pjproject/branches/users/nanang
- Files:
-
- 1 added
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjmedia/build/Makefile
r1664 r1718 3 3 THIRD_PARTY:=$(PJDIR)/third_party 4 4 PA_DIR := $(THIRD_PARTY)/build/portaudio/src 5 6 SRTP_INC=$(CC_INC)$(THIRD_PARTY)/build/srtp \ 7 $(CC_INC)$(THIRD_PARTY)/srtp/crypto/include \ 8 $(CC_INC)$(THIRD_PARTY)/srtp/include 5 9 6 10 include $(PJDIR)/build/common.mak … … 26 30 $(CC_INC)../../pjlib-util/include \ 27 31 $(CC_INC)../../pjnath/include \ 28 $(CC_INC)../.. 32 $(CC_INC)../.. \ 33 $(SRTP_INC) 29 34 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 30 35 $(HOST_CXXFLAGS) $(CXXFLAGS) … … 49 54 resample_port.o rtcp.o rtp.o sdp.o sdp_cmp.o sdp_neg.o \ 50 55 session.o silencedet.o sound_port.o stream.o \ 51 tonegen.o transport_ice.o transport_udp.o \ 56 tonegen.o transport_ice.o transport_srtp.o \ 57 transport_udp.o \ 52 58 wav_player.o wav_playlist.o wav_writer.o wave.o \ 53 59 $(SOUND_OBJS) $(NULLSOUND_OBJS) -
pjproject/branches/users/nanang/pjmedia/include/pjmedia/transport.h
r1702 r1718 167 167 PJ_BEGIN_DECL 168 168 169 #include <pjmedia/sdp.h> 169 170 170 171 /* … … 172 173 */ 173 174 typedef struct pjmedia_transport pjmedia_transport; 174 typedef struct pjmedia_sdp_session pjmedia_sdp_session;175 175 176 176 -
pjproject/branches/users/nanang/pjsip-apps/src/samples/streamutil.c
r1698 r1718 176 176 /* Check if SRTP enabled */ 177 177 if (use_srtp) { 178 pjmedia_srtp_ stream_policytx_plc, rx_plc;178 pjmedia_srtp_crypto tx_plc, rx_plc; 179 179 180 180 status = pjmedia_transport_srtp_create(med_endpt, transport, 181 PJMEDIA_SRTP_AUTO_CLOSE_UNDERLYING_TRANSPORT, 182 &srtp_tp); 181 NULL, &srtp_tp); 183 182 if (status != PJ_SUCCESS) 184 183 return status; 185 184 186 pj_bzero(&tx_plc, sizeof(pjmedia_srtp_ stream_policy));187 pj_bzero(&rx_plc, sizeof(pjmedia_srtp_ stream_policy));185 pj_bzero(&tx_plc, sizeof(pjmedia_srtp_crypto)); 186 pj_bzero(&rx_plc, sizeof(pjmedia_srtp_crypto)); 188 187 189 188 tx_plc.key = *srtp_tx_key; 190 tx_plc. crypto_suite = *crypto_suite;189 tx_plc.name = *crypto_suite; 191 190 rx_plc.key = *srtp_rx_key; 192 rx_plc. crypto_suite = *crypto_suite;191 rx_plc.name = *crypto_suite; 193 192 194 status = pjmedia_transport_srtp_ init_session(srtp_tp, &tx_plc, &rx_plc);193 status = pjmedia_transport_srtp_start(srtp_tp, &tx_plc, &rx_plc); 195 194 if (status != PJ_SUCCESS) 196 195 return status; -
pjproject/branches/users/nanang/pjsip/src/pjsua-lib/pjsua_call.c
r1709 r1718 2406 2406 { 2407 2407 pjsua_call *call; 2408 const pjmedia_sdp_session *c_local; 2408 2409 pjmedia_sdp_session *local_sdp; 2409 2410 const pjmedia_sdp_session *remote_sdp; … … 2435 2436 2436 2437 /* Get local and remote SDP */ 2437 status = pjmedia_sdp_neg_get_active_local(call->inv->neg, & local_sdp);2438 status = pjmedia_sdp_neg_get_active_local(call->inv->neg, &c_local); 2438 2439 if (status != PJ_SUCCESS) { 2439 2440 pjsua_perror(THIS_FILE, … … 2444 2445 return; 2445 2446 } 2447 local_sdp = (pjmedia_sdp_session*) c_local; 2446 2448 2447 2449 status = pjmedia_sdp_neg_get_active_remote(call->inv->neg, &remote_sdp); -
pjproject/branches/users/nanang/third_party/build/Makefile
r1488 r1718 1 DIRS = resample milenage 1 DIRS = resample milenage srtp 2 2 3 3 include ../../build.mak -
pjproject/branches/users/nanang/third_party/build/srtp
- Property svn:ignore
-
old new 1 1 *.user 2 2 *.plg 3 .*depend
-
- Property svn:ignore
-
pjproject/branches/users/nanang/third_party/build/srtp/srtp_config.h
r1717 r1718 1 /* config.h for Win32/MSVC */ 1 #include <pj/types.h> 2 2 3 3 /* Define if building for a CISC machine (e.g. Intel). */ 4 #define CPU_CISC 1 4 /* #define CPU_CISC 1 */ 5 5 6 6 /* Define if building for a RISC machine (assume slow byte access). */ 7 7 /* #undef CPU_RISC */ 8 8 9 /* PJLIB can't detect CISC vs RISC CPU, so we'll just say RISC here */ 10 #if defined(PJ_WIN32) && PJ_WIN32!=0 11 # define CPU_CISC 1 12 #else 13 # define CPU_RISC 1 14 #endif 15 9 16 /* Path to random device */ 10 17 /* #define DEV_URANDOM "/dev/urandom" */ … … 17 24 18 25 /* Define to use logging to stdout. */ 19 #define ERR_REPORTING_STDOUT 126 //#define ERR_REPORTING_STDOUT 1 20 27 21 28 /* Define this to use ISMAcryp code. */ … … 23 30 24 31 /* Define to 1 if you have the <arpa/inet.h> header file. */ 25 /* #undef HAVE_ARPA_INET_H */ 32 #ifdef PJ_HAS_ARPA_INET_H 33 # define HAVE_ARPA_INET_H 1 34 #endif 26 35 27 36 /* Define to 1 if you have the <byteswap.h> header file. */ … … 29 38 30 39 /* Define to 1 if you have the `inet_aton' function. */ 31 /* #undef HAVE_INET_ATON */ 40 #ifdef PJ_SOCK_HAS_INET_PTON 41 # define HAVE_INET_ATON 1 42 #endif 32 43 33 44 /* Define to 1 if the system has the type `int16_t'. */ … … 50 61 51 62 /* Define to 1 if you have the <memory.h> header file. */ 52 #define HAVE_MEMORY_H 163 //#define HAVE_MEMORY_H 1 53 64 54 65 /* Define to 1 if you have the <netinet/in.h> header file. */ 55 /* #undef HAVE_NETINET_IN_H */ 66 #ifdef PJ_HAS_NETINET_IN_H 67 # define HAVE_NETINET_IN_H 1 68 #endif 56 69 57 70 /* Define to 1 if you have the `socket' function. */ … … 62 75 63 76 /* Define to 1 if you have the <stdlib.h> header file. */ 64 #define HAVE_STDLIB_H 1 77 #ifdef PJ_HAS_STDLIB_H 78 # define HAVE_STDLIB_H 1 79 #endif 65 80 66 81 /* Define to 1 if you have the <strings.h> header file. */ 67 #define HAVE_STRINGS_H 182 //#define HAVE_STRINGS_H 1 68 83 69 84 /* Define to 1 if you have the <string.h> header file. */ 70 #define HAVE_STRING_H 1 85 #ifdef PJ_HAS_STRING_H 86 # define HAVE_STRING_H 1 87 #endif 71 88 72 89 /* Define to 1 if you have the <syslog.h> header file. */ … … 77 94 78 95 /* Define to 1 if you have the <sys/socket.h> header file. */ 79 /* #undef HAVE_SYS_SOCKET_H */ 96 #ifdef PJ_HAS_SYS_SOCKET_H 97 # define HAVE_SYS_SOCKET_H 1 98 #endif 80 99 81 100 /* Define to 1 if you have the <sys/stat.h> header file. */ 82 #define HAVE_SYS_STAT_H 1101 //#define HAVE_SYS_STAT_H 1 83 102 84 103 /* Define to 1 if you have the <sys/types.h> header file. */ 85 #define HAVE_SYS_TYPES_H 1 104 #ifdef PJ_HAS_SYS_TYPES_H 105 # define HAVE_SYS_TYPES_H 1 106 #endif 86 107 87 108 /* Define to 1 if you have the <sys/uio.h> header file. */ 88 109 /* #undef HAVE_SYS_UIO_H */ 89 110 111 /* Define to 1 if the system has the type `uint8_t'. */ 112 #define HAVE_UINT8_T 1 113 90 114 /* Define to 1 if the system has the type `uint16_t'. */ 91 115 #define HAVE_UINT16_T 1 … … 97 121 #define HAVE_UINT64_T 1 98 122 99 /* Define to 1 if the system has the type `uint8_t'. */100 #define HAVE_UINT8_T 1101 102 123 /* Define to 1 if you have the <unistd.h> header file. */ 103 /* #undef HAVE_UNISTD_H */104 105 124 /* Define to 1 if you have the `usleep' function. */ 106 /* #undef HAVE_USLEEP */ 125 #ifdef PJ_HAS_UNISTD_H 126 # define HAVE_UNISTD_H 1 127 # define HAVE_USLEEP 1 128 #endif 129 107 130 108 131 /* Define to 1 if you have the <windows.h> header file. */ 109 #define HAVE_WINDOWS_H 1 132 #if defined(PJ_WIN32) && PJ_WIN32!=0 133 # define HAVE_WINDOWS_H 1 134 #endif 110 135 111 136 /* Define to 1 if you have the <winsock2.h> header file. */ 112 #define HAVE_WINSOCK2_H 1 137 #ifdef PJ_HAS_WINSOCK2_H 138 # define HAVE_WINSOCK2_H 1 139 #endif 113 140 114 141 /* Define to use X86 inlined assembly code */ … … 131 158 132 159 /* The size of a `unsigned long', as computed by sizeof. */ 133 #define SIZEOF_UNSIGNED_LONG 4160 #define SIZEOF_UNSIGNED_LONG (sizeof(unsigned long)) 134 161 135 162 /* The size of a `unsigned long long', as computed by sizeof. */ … … 146 173 147 174 /* Define to 1 if you have the ANSI C header files. */ 148 #define STDC_HEADERS 1175 //#define STDC_HEADERS 1 149 176 150 177 /* Write errors to this file */ … … 161 188 /* #undef const */ 162 189 163 /* Define 'inline' to nothing, since the MSVC compiler doesn't support it. */ 164 #define inline 190 /* MSVC does't have "inline" */ 191 #if defined(_MSC_VER) 192 # define inline _inline 193 #endif 165 194 166 195 /* Define to `unsigned' if <sys/types.h> does not define. */ … … 176 205 #endif // VC8+ 177 206 178 #ifndef uint32_t 179 typedef unsigned char uint8_t; 180 typedef unsigned short uint16_t; 181 typedef unsigned int uint32_t; 182 typedef unsigned __int64 uint64_t; 183 typedef signed char int8_t; 184 typedef short int16_t; 185 typedef int int32_t; 186 typedef __int64 int64_t; 207 #ifndef int_types_defined 208 typedef pj_uint8_t uint8_t; 209 typedef pj_uint16_t uint16_t; 210 typedef pj_uint32_t uint32_t; 211 typedef pj_uint64_t uint64_t; 212 typedef pj_int8_t int8_t; 213 typedef pj_int16_t int16_t; 214 typedef pj_int32_t int32_t; 215 typedef pj_int64_t int64_t; 216 # define int_types_defined 187 217 #endif 188 218 … … 193 223 #pragma warning(disable:4244) // conversion from int64 to int 194 224 #endif 225 -
pjproject/branches/users/nanang/third_party/srtp/crypto/include/aes.h
r1697 r1718 47 47 #define _AES_H 48 48 49 #include " config.h"49 #include "srtp_config.h" 50 50 51 51 #include "datatypes.h" -
pjproject/branches/users/nanang/third_party/srtp/crypto/include/integers.h
r1697 r1718 48 48 #define INTEGERS_H 49 49 50 #include " config.h" /* configuration file, using autoconf*/50 #include "srtp_config.h" /* configuration file, using autoconf */ 51 51 52 52 #ifdef SRTP_KERNEL -
pjproject/branches/users/nanang/third_party/srtp/crypto/rng/rand_source.c
r1701 r1718 43 43 */ 44 44 45 #include " config.h"45 #include "srtp_config.h" 46 46 47 47 #ifdef DEV_URANDOM -
pjproject/branches/users/nanang/third_party/srtp/srtp/srtp.c
r1699 r1718 484 484 } 485 485 #else 486 #if _MSC_VER <= 1200 487 key_limit_set(srtp->limit, 0xffffffffffffI64); 488 #else 489 key_limit_set(srtp->limit, 0xffffffffffffLL); 490 #endif 486 key_limit_set(srtp->limit, PJ_UINT64(0xffffffffffff)); 491 487 #endif 492 488
Note: See TracChangeset
for help on using the changeset viewer.