mirror of https://github.com/aria2/aria2
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error without ssl library. * src/util.ccpull/1/head
parent
f794df7d9b
commit
fb3e69db3b
|
@ -1,3 +1,8 @@
|
|||
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed compile error without ssl library.
|
||||
* src/util.cc
|
||||
|
||||
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Logged received nodes in get_peers reply message.
|
||||
|
|
|
@ -836,7 +836,7 @@ void generateRandomData(unsigned char* data, size_t length)
|
|||
}
|
||||
#else
|
||||
std::ifstream i("/dev/urandom", std::ios::binary);
|
||||
i.read(data, length);
|
||||
i.read(reinterpret_cast<char*>(data), length);
|
||||
#endif // HAVE_LIBSSL
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue