Tatsuhiro Tsujikawa
b706722c59
Fix unitest crash
2014-01-05 19:16:49 +09:00
Tatsuhiro Tsujikawa
8216bdba79
Fix bug that numOpenFile_ is not reduced when MultiDiskAdaptor is deleted
...
This bug caused assertion error in RequestGroupMan::ensureMaxOpenFileLimit
2013-12-31 22:57:11 +09:00
Nils Maier
a44c71586a
Fix crash in HttpSkipResponseCommand ctor
...
(Regression from the memory holes stuff; missed to commit :p)
2013-12-24 23:14:26 +01:00
Tatsuhiro Tsujikawa
c881f9fcad
Run DHT if torrent is private; but don't use DHT for that torrent
2013-12-20 21:39:30 +09:00
Tatsuhiro Tsujikawa
a21a868af0
FileEntry: Pass by value for simple setter functions
2013-12-15 19:20:31 +09:00
Nils Maier
32e569ab16
Fix broken EXTRA_DIST
2013-12-09 16:38:45 +01:00
Nils Maier
2db0c81fc8
Stuff memory holes
...
Padding changes on x86_64:
- RequestGroup: 29 -> 5 bytes
- DownloadContext: 25 -> 1 bytes
- Cookie: 20 -> 4 bytes
- Command: 8 -> 0 bytes (affects many derived as well)
- HttpRequest: 20 -> 4 bytes
- DownloadCommand: 18 -> 2 bytes
- TimeBasedCommand: 14 -> 6 bytes
- AbstractCommand: 13 -> 5 bytes
- HttpSkipResponseCommand: 12 -> 4 bytes
- FileEntry: 10 -> 2 bytes
- DownloadResult: 15 -> 7 bytes
- UriStruct: 12 -> 4 bytes
- Piece: 11 -> 3 bytes
- BitfieldMan -> 11 -> 3 bytes
2013-12-09 15:41:43 +01:00
Nils Maier
1323048ab1
Remove a dead store in Piece
2013-12-09 15:41:43 +01:00
Nils Maier
ff9607d6a9
Add WinTLS to FeatureConfig::usedLibs
2013-12-09 08:28:56 +01:00
Nils Maier
766209cf2e
It is AppleTLS (everywhere else)
2013-12-09 08:28:56 +01:00
Nils Maier
6a8fb5744c
Fix warning in AppleTLS
2013-12-09 08:28:56 +01:00
Tatsuhiro Tsujikawa
705dadb32b
Fix crash when metaurl contains unsupported URI or text
2013-12-07 01:16:47 +09:00
Tatsuhiro Tsujikawa
2c566ccb68
Fix bad fork() return value handling
2013-12-06 00:40:08 +09:00
Tatsuhiro Tsujikawa
03d5b4627b
ColorizedStreamBuf::str: Append character prefix to stream directly
2013-11-23 15:34:43 +09:00
Nils Maier
80528aa9ce
Use some colors in progress reports (where available)
2013-11-21 15:42:42 +01:00
Nils Maier
87ea4904a0
Implement basic color support for the Windows console
...
Only \033[*m (SGR) is supported, with a 16+16 color terminal.
2013-11-21 15:34:34 +01:00
Nils Maier
a476fb352e
AppleTLS: Implement PKCS12 loading.
2013-11-20 10:48:15 +01:00
Tatsuhiro Tsujikawa
4d105a2686
Limit number of opened file globally with --bt-max-open-files option
...
This change changes the behavior of --bt-max-open-files. Previously,
it specifies the maximum number of opened files for each multi-file
download. Since it is more useful to limit the number globally, the
option now specifies the global limit. This change suggests that
aria2.changeOption() method now ignores --bt-max-open-files and
aria2.changeGlobalOption now reads it and dynamically change the
limit.
2013-11-17 19:33:18 +09:00
Tatsuhiro Tsujikawa
c4334ec579
Use move for XML parser
2013-11-10 20:39:31 +09:00
Tatsuhiro Tsujikawa
9e52483c04
Refactor DownloadHandlerFactory
2013-11-10 18:19:02 +09:00
Tatsuhiro Tsujikawa
ba3b823a66
Code cleanup
2013-11-10 15:36:37 +09:00
Tatsuhiro Tsujikawa
e1e6bb1ec5
Don't fail multiple concurrent dl same file if auto-file-renaming is enabled
2013-11-08 00:59:57 +09:00
Tatsuhiro Tsujikawa
2aa8e01836
Fix typo
2013-11-06 23:40:59 +09:00
Tatsuhiro Tsujikawa
9f5fdb4e10
Code cleanup
2013-11-01 22:10:24 +09:00
Tatsuhiro Tsujikawa
fd0136259c
Remove nativeToUtf8 and utf8ToNative
...
They are now not needed since we use Windows specific command-line
argument converter.
2013-11-01 22:06:13 +09:00
Tatsuhiro Tsujikawa
3a8e8f8e8a
mingw32: Use CommandLineToArgvW() and GetCommandLineW() to read cmd-line args
...
This change enables aria2 to read unicode characters in command-line.
2013-11-01 00:16:35 +09:00
Tatsuhiro Tsujikawa
b759725a61
Peer: Use std::unique_ptr for res_
2013-10-26 21:38:17 +09:00
Tatsuhiro Tsujikawa
6d2dd2ab18
DefaultPeerStorage: Code cleanup
2013-10-26 21:28:58 +09:00
Tatsuhiro Tsujikawa
234dd76cd4
DefaultPeerStorage: Add warn log when Peer::usedBy is non zero on checkoutPeer
2013-10-26 20:02:48 +09:00
Tatsuhiro Tsujikawa
12fe61820a
DefaultPeerStorage: Log origPort in checkoutPeer and returnPeer
...
Also make the log level warning when the returned peer is not found.
2013-10-26 19:58:53 +09:00
Tatsuhiro Tsujikawa
2548cd4d6e
Fix missing sha1.h and md5.h in Makefile.am
2013-10-20 19:09:49 +09:00
Tatsuhiro Tsujikawa
218dc89be9
Update doc
2013-10-20 16:04:09 +09:00
Tatsuhiro Tsujikawa
065979cda4
Remove log message "TLS else" as this function called repeatedly
2013-10-08 21:28:32 +09:00
Tatsuhiro Tsujikawa
33293bcd5a
LibsslTLSContext: Remove weak cipher suite
2013-10-08 21:26:13 +09:00
Tatsuhiro Tsujikawa
98d88ec6d5
Don't log "TLS Handshaking" twice or more
2013-10-07 23:01:51 +09:00
Tatsuhiro Tsujikawa
3080af7370
Request: Remove previousUri_
...
Historically, the previousUri_ has different meaning from referer_,
but in the course of development, they have the same value. This
change remove previousUri_ in favor of referer_.
2013-10-01 21:53:28 +09:00
Nils Maier
3b35887827
WinTLS: Enable --certifcate support
2013-09-30 16:37:09 +02:00
Nils Maier
3b9a385305
AppleTLS: Enable --certificate
...
Tested against self-signed CA with nginx
2013-09-30 16:37:01 +02:00
Nils Maier
4c84af31be
WinTLS: Fix PKCS12 loading
...
It appears that, contrary to most documentation, CERT_CONTEXT* is eaten
alive by AcquireCredentialsHandle(). Hence you cannot really reuse that.
2013-09-30 16:36:15 +02:00
Tatsuhiro Tsujikawa
50ac6afe36
util.cc: Remove uselss inline static
2013-09-30 21:50:51 +09:00
Tatsuhiro Tsujikawa
b772aa6a5e
util::percentEncodeMini: Fix regression bug removed unsignedness
...
srange-based for around std::string is convenient but several
functions depend unsigned char for correctness and readability.
2013-09-30 21:32:57 +09:00
Nils Maier
00dd83b461
Implement WinTLS
2013-09-30 13:53:21 +02:00
Nils Maier
3f1d293ed1
WinMessgeDigestImpl: gcc-4.6 does not support .emplace() yet
2013-09-29 15:47:22 +02:00
Tatsuhiro Tsujikawa
40e53de908
MessageDigestImpl.h: Simplify hash_info_t access
2013-09-28 23:40:06 +09:00
Tatsuhiro Tsujikawa
6f6a17bff7
Randomizer: Remove unused interfaces
2013-09-28 22:55:05 +09:00
Tatsuhiro Tsujikawa
986f69e5bf
SimpleRandomizer: Use std::random
2013-09-28 22:00:37 +09:00
Tatsuhiro Tsujikawa
44479c910e
Log exception; throw error if loading private key and/or certificate failed
2013-09-26 00:56:23 +09:00
Tatsuhiro Tsujikawa
7f18494a8c
SimpleRandmizer: Fix certain bits generated by getRandomBytes are always 0
...
This is because in Linux RAND_MAX is 2**31-1 and we used int32_t to
hold random number from random() and got each bytes. This means that
highest bit is always unset. In little endian system, every 4n-th (n
>=0) byte has highest bit is unset. To fix this, we just use lower 2
bytes of random().
2013-09-26 00:41:33 +09:00
Tatsuhiro Tsujikawa
ac996737e5
Move OpenSSL_add_all_algorithms() to Platform::setUp()
2013-09-26 00:17:59 +09:00
Tatsuhiro Tsujikawa
d7d5e8570b
Include prefs.h instead of typedef PrefPtr everywhere
2013-09-26 00:15:18 +09:00
Tatsuhiro Tsujikawa
8536f13cff
uri.cc: Use auto instead of adhoc typedef
2013-09-26 00:15:18 +09:00
Tatsuhiro Tsujikawa
d2af91ed08
InternalDHKeyExchange: Remove unused dtor
2013-09-26 00:13:25 +09:00
Tatsuhiro Tsujikawa
da278225c1
InternalARC4Encryptor: Fix compiler warning and remove no use ctor/dtor
2013-09-26 00:11:10 +09:00
Tatsuhiro Tsujikawa
f2a1d241c2
Merge branch 'master' into bignum-arc4
2013-09-26 00:00:24 +09:00
Tatsuhiro Tsujikawa
c81fd8e194
InternalMessageDigestImpl: Fix memory leak
2013-09-25 23:58:59 +09:00
Tatsuhiro Tsujikawa
7dc5567cad
InternalMessageDigestImpl: Code cleanup
2013-09-25 23:57:03 +09:00
Tatsuhiro Tsujikawa
77b7747ca8
Ensure that Commands are cleaned up before RequestGroupMan is deleted
2013-09-25 23:35:18 +09:00
Tatsuhiro Tsujikawa
ca8ac6e7d3
bignum.h: Fix compile error
2013-09-25 22:43:48 +09:00
Tatsuhiro Tsujikawa
6198b607e9
Merge branch 'master' into bignum-arc4
2013-09-25 21:55:32 +09:00
Nils Maier
99f170b888
Provide internal ARC4 implementation
...
Now you can build bittorrent support without without external
libraries, meaning you can skip libnettle, libgmp, libgcrypt, GnuTLS and
OpenSSL on OSX (for now).
2013-09-24 19:11:26 +02:00
Nils Maier
e854463b2d
Internal implementation of DHKeyExchange
...
Reusing a bignum (well, unsigned very-long) implementation I had lying
around for years and just cleaned up a bit and brought to C++11 land.
It might not be the most performant implementation, but it shoud be fast
enough for our purposes and will go a long way of removing gcrypt,
nettle, gmp, openssl dependencies when using AppleTLS and WinTLS
(upcoming).
2013-09-24 19:11:00 +02:00
Nils Maier
86c61fcf5b
Make generateRandomBytes less biased.
2013-09-24 19:07:18 +02:00
Nils Maier
e5644a7188
Revert OptionHandlerFactory changes
2013-09-24 16:17:15 +02:00
Nils Maier
d1ae9f87fd
using to typedef to make gcc-4.6 happy
2013-09-24 16:14:35 +02:00
Nils Maier
4a1d186962
Better error messages when PKCS12 import fails
2013-09-24 01:05:58 +02:00
Nils Maier
063451f0c9
TLS: Minor code cleanups
2013-09-23 15:43:11 +02:00
Nils Maier
d560bf0e6f
TLS: Fix dangling str() pointers
2013-09-23 15:10:53 +02:00
Nils Maier
37f9c668ff
Teach GnuTLS backend to load .p12 files
2013-09-22 12:55:27 +02:00
Nils Maier
f7b0fbbf53
Teach Libssl backend to load .p12 files
2013-09-22 12:55:27 +02:00
Nils Maier
38bdea4e06
Add internal md5 and sha1 message digests
2013-09-20 23:06:50 +02:00
Nils Maier
fa30fe4b15
One MessageDigestImpl.h to rule them all.
2013-09-20 23:06:49 +02:00
Nils Maier
a4e29303ef
WinTLS: Implement messsage digest using the Cryptography Provider
2013-09-20 23:06:49 +02:00
Nils Maier
b678bc5e10
Fix AppleMessageDigestImpl use with large data
2013-09-20 23:06:49 +02:00
Nils Maier
7738063100
AppleTLS: Remove unused variables
2013-09-20 23:06:49 +02:00
Nils Maier
3b9988251f
clang-modernize -add-override on headers
2013-09-20 23:06:49 +02:00
Nils Maier
e2700f50a5
Code cleanup in Http*
2013-09-20 23:06:49 +02:00
Nils Maier
29d569eef9
Cleanup RequestGroup code a bit
2013-09-20 23:06:49 +02:00
Nils Maier
3590077d5c
More auto-converts by cpp11-migrate
2013-09-20 23:06:49 +02:00
Nils Maier
a76eeb2b81
Introduce PrefPtr typedef
2013-09-19 19:59:33 +02:00
Nils Maier
8e6e46dfcf
More code cleanups
2013-09-19 19:59:33 +02:00
Tatsuhiro Tsujikawa
9e7579b475
Set old cookie's creation-time to new cookie on replacement
...
As described in http://tools.ietf.org/html/rfc6265#section-5.3
2013-09-20 00:24:03 +09:00
Tatsuhiro Tsujikawa
e3a41a51da
Fix link error with Android NDK r9
...
Since Android ndk r9, __set_errno is deprecated. It is now defined as
inline function in errno.h. The syscall assembly calls __set_errno,
but since libc.so does not export it, the link fails. To workaround
this, replace all occurrences of __set_errno with a2_set_errno and
define it as normal C function.
2013-09-18 23:10:25 +09:00
Tatsuhiro Tsujikawa
fa09dc9115
Clean up if defined style
2013-09-17 23:17:08 +09:00
Tatsuhiro Tsujikawa
acd2af82d0
util::htmlEscape: Optimize a bit
...
The cause of slowness of the first implementation is the memory
allocation overhead and appending character by character. In this
implementation, the output buffer is reserved the same size of input.
This is reasonable because most likely no replacement happens in
practice. And the unmodified region is copied using iterator range to
speed up a bit.
2013-08-29 01:09:15 +09:00
Nils Maier
75e61ee3d0
Fast-path for percentEncodeMini(string&)
2013-08-24 22:25:29 +02:00
Nils Maier
b2da75ca33
Optimize htmlEscape implementation a bit
2013-08-24 21:54:56 +02:00
Nils Maier
1b8de6bb18
Add fast-path to percentEncode(string&)
2013-08-24 21:54:36 +02:00
Nils Maier
4418ebdedc
AppleTLSSession: Remove unused private member
2013-08-24 20:08:15 +02:00
Nils Maier
522ae80fd4
Fix no-return warning in FtpInitiateConnectionCommand
...
... and untangle code a bit while at it.
2013-08-24 20:02:13 +02:00
Tatsuhiro Tsujikawa
ee2e21150b
Use std::unordered_map in IndexedList for faster speed
...
Because mingw cross compiler g++-4.6.3 does not support
std::unordered_map::emplace and std::deque::emplace, traditional
insert member function is used instead.
2013-08-21 23:46:16 +09:00
Nils Maier
cf6f58ceec
More code cleanups
2013-08-21 07:32:01 +02:00
Nils Maier
8526ceeb45
Convert to autos and ranged loops
2013-08-21 05:56:17 +02:00
Nils Maier
d8f44ef4f6
Convert most 0/NULL pointers to nullptr
...
Courtesy of llvm cpp11-migrate 3.3
2013-08-20 21:28:24 +02:00
Nils Maier
9da17424c6
Fix json::decodeGetParams when compiled with recent Apple clang
2013-08-20 20:48:49 +02:00
Nils Maier
270f429838
Fix util::nextParam when compiled with recent Apple clang
2013-08-20 20:48:49 +02:00
Tatsuhiro Tsujikawa
c26c1e234a
Move GHR outside of function and provide ctor to suppress compiler warning
...
Without ctor, compiler emits warning "unused variable ghr".
2013-08-19 23:54:54 +09:00
Tatsuhiro Tsujikawa
b6d84c0160
Use nullptr for std::shared_ptr and unique_ptr default parameter
2013-08-19 23:50:58 +09:00
Tatsuhiro Tsujikawa
5ba7150333
Code cleanup
2013-08-19 23:50:14 +09:00
Tatsuhiro Tsujikawa
7b04c841d6
Code cleanup
2013-08-19 23:40:28 +09:00
Tatsuhiro Tsujikawa
7f049dc2a4
Fix bad use of std::move
...
In the original code, std::move(cookieDomain) may be performed before
util::isNumericHost(cookieDomain), which is unintentional.
2013-08-19 23:29:08 +09:00
Nils Maier
bf5a940ed4
Define a type for signal handlers
2013-08-18 06:04:20 +02:00
Nils Maier
79fcafc31f
Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERM
2013-08-18 06:04:20 +02:00
Nils Maier
9e25335850
Implement a simple resource lock (threading)
...
In this initial implementation Locks are no-ops on platforms other than
Windows.
2013-08-18 06:01:52 +02:00
Nils Maier
a982dee961
Switch CA_BUNDLE to AC_DEFINE
2013-08-16 22:32:16 +02:00
Nils Maier
303f987ee9
Add --with-disk-cache configure option
...
Enables packagers more fine grained control over the default value
without having to mess with config files.
See GH-115
2013-08-16 22:31:56 +02:00
Nils Maier
90c39522a2
Libuv: Compatiblity fix with master
2013-08-16 22:29:14 +02:00
Nils Maier
4be7ec380f
Change defaults: Enable 16M disk cache by default.
2013-08-12 20:51:19 +02:00
Tatsuhiro Tsujikawa
732ed1fb8b
Fix broken XMLRPC method call
2013-08-12 10:55:50 +09:00
Tatsuhiro Tsujikawa
8d62682202
Fix segmentation fault if RpcMethod::process throws exception
2013-08-04 00:02:52 +09:00
Tatsuhiro Tsujikawa
de55569de5
Always save control file if --force-save is given
2013-07-28 18:07:29 +09:00
Tatsuhiro Tsujikawa
41121e09f7
Use std::unique_ptr for Metalink objects
2013-07-12 23:09:23 +09:00
Tatsuhiro Tsujikawa
59e63d956e
Rewrite RPC method factory function
2013-07-11 21:50:47 +09:00
Tatsuhiro Tsujikawa
7c06b903f3
Use std::unique_ptr for ValueBase object hierarchy
2013-07-11 21:09:51 +09:00
Tatsuhiro Tsujikawa
7a57ecc5f8
DefaultBtMessageDispatcher: Remove unused members peerStorage_, pieceStorage_
2013-07-07 23:28:51 +09:00
Tatsuhiro Tsujikawa
cf8cfeefbc
DHTInteractionCommand: Use std::unique_ptr for DHTConnection
...
Remove DHTConnection from DHTMessageReceiver because it is not used.
2013-07-07 23:28:51 +09:00
Nils Maier
fc6318d23f
Fix a bad std::move in HttpConnection
...
C++ Standard says that the order of evaluation of arguments is
unspecified. Even if it wasn't, std::move would run first, invalidating
the httpRequest smartptr, so that httpRequest->createRequest() would be
executed on the invalid ptr.
Some compilers might be smart enough to correct this error, clang XCode
Edition surely is not (not should it).
2013-07-07 14:42:36 +02:00
Tatsuhiro Tsujikawa
3f5f1e26d9
Refactor PeerInterationCommand ctor
2013-07-06 22:03:37 +09:00
Tatsuhiro Tsujikawa
3c66c18489
TrackerWatcherCommand: Use std::unique_ptr for trackerRequest_
2013-07-06 21:00:57 +09:00
Tatsuhiro Tsujikawa
5378ed8c43
MultiUrlRequestFactory: Use std::unique_ptr for DownloadEngine
2013-07-06 19:45:01 +09:00
Tatsuhiro Tsujikawa
00e27e4fa4
DownloadEngine: Use std::unique_ptr for eventPoll_
2013-07-06 19:39:16 +09:00
Tatsuhiro Tsujikawa
f83b0fcfa3
Refactor MultiUrlRequestInfo ctor
...
StatCalc creation is moved to MultiUrlRequestInfo. The summary output
is done only when PREF_QUIET is false and it is always to
global::cout(), so remove summaryOut_ and just use global::cout() in
that case. Also use std::unique_ptr for statCalc_ in DownloadEngine.
2013-07-06 19:26:30 +09:00
Tatsuhiro Tsujikawa
162c138362
BtRegistry: Use std::unique_ptr for BtObject
2013-07-06 19:09:39 +09:00
Tatsuhiro Tsujikawa
cc3cd8a58b
DownloadEngine: Use std::unique_ptr for btRegistry_
2013-07-06 18:42:57 +09:00
Tatsuhiro Tsujikawa
3a3ac4ef9b
DownloadEngine: Use std::unique_ptr for dnsCache_
2013-07-06 18:38:18 +09:00
Tatsuhiro Tsujikawa
9130dc6776
DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_
...
Notifier::addDownloadEventListener now takes pointer to
DownloadEventListener. Session holds unique_ptr to
ApiCallbackDownloadEventListener object.
2013-07-06 18:33:59 +09:00
Tatsuhiro Tsujikawa
81f46fbf92
Use CXX11_OVERRIDE
2013-07-06 18:15:09 +09:00
Tatsuhiro Tsujikawa
5c4f97b8a9
MultiUrlRequestInfo: Remove virtual from dtor
2013-07-06 18:14:36 +09:00
Tatsuhiro Tsujikawa
68f2a33355
DownloadEngine: Use std::unique_ptr for RequestGroupMan
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
697c1008f7
DownloadEngine: Use std::unique_ptr for checkIntegrityMan_, fileAllocationMan_
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
6b397c8125
Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
c9e58779e1
Use std::unique_ptr for IteratableValidator
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
d3a04d10a7
DefaultPieceStorage::initStorage: Clean up
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
ae84ff26e2
AbstractSingleDiskAdaptor: Use std::unique_ptr for diskWriter_
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
f8d305fe63
Use std::unique_ptr for FileAllocationIterator
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
345ba415a5
MultiDiskWriter: Rewrite resetDiskWriterEntries() using simpler algorithm
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
f000fd0cab
MultiDiskAdaptor: Use std::unique_ptr for DiskWriterEntry and DiskWriter
...
MultiFileAllocationIterator is also rewritten so that it does not
requre copying DiskWriterEntry objects.
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
28d5c7408f
Check that C++ compiler supports override keyword
...
If the compiler supports override, define CXX11_OVERRIDE as override,
otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
2013-07-06 15:54:03 +09:00
Tatsuhiro Tsujikawa
cce5b3206a
Merge branch 'fix-streamfilters' of https://github.com/nmaier/aria2 into nmaier-fix-streamfilters
2013-07-06 14:39:57 +09:00
Nils Maier
093ea1de44
Fix bogus virtual override in StreamFilters
2013-07-05 20:15:55 +02:00
Nils Maier
d4044306f3
AppleTLS: Fix MessageDigestImpl
2013-07-05 20:14:49 +02:00
Nils Maier
59ba3c99f6
AppleTLS: Fix session CFRelease stuff
2013-07-05 02:00:21 +02:00
Tatsuhiro Tsujikawa
c6a733378f
Use std::unique_ptr to receive BtMessage
2013-07-04 22:35:41 +09:00
Tatsuhiro Tsujikawa
0cdeaa8177
Return nullptr directly where std::shared_ptr is expected
...
The constructor of std::shared_ptr which takes nullptr is not explicit
so we can return nullptr directly.
2013-07-04 21:44:09 +09:00
Tatsuhiro Tsujikawa
107de58997
Return nullptr directly where std::unique_ptr is expected
...
The constructor of std::unique_ptr which takes nullptr is not explicit
so we can return nullptr directly.
2013-07-04 21:33:36 +09:00
Tatsuhiro Tsujikawa
6ba1725e0f
Use std::unique_ptr for ARC4Encryptor in PeerConnection and MSEHandshake
2013-07-04 21:13:14 +09:00
Tatsuhiro Tsujikawa
b4ae039702
BinExpr, UnExpr: Make copies of args so that we can use them with rvalues
2013-07-04 03:04:50 +09:00
Tatsuhiro Tsujikawa
05d75ed218
Fix array version make_unique is invoked for 1 size_t arg accidentally
2013-07-04 03:02:33 +09:00
Tatsuhiro Tsujikawa
bc6aa3073b
Use std::unique_ptr for StreamPieceSelector instead of std::shared_ptr
2013-07-04 01:41:12 +09:00
Tatsuhiro Tsujikawa
128783cf86
Use std::unique_ptr for PieceSelector instead of std::shared_ptr
2013-07-04 01:38:24 +09:00
Tatsuhiro Tsujikawa
a479473949
Use std::unique_ptr for URISelector instead of std::shared_ptr
2013-07-04 01:16:48 +09:00