1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

cleanup: prefer the internal functions

To get the blocking vs non-blocking to work as smooth as possible
and behave better internally, we avoid using the external
interfaces when calling functions internally.

Renamed a few internal functions to use _libssh2 prefix when not
being private within a file, and removed the libssh2_ for one
that was private within the file.
This commit is contained in:
Daniel Stenberg
2010-04-24 21:14:16 +02:00
parent 5163e4ecb8
commit 71fb9cc93e
15 changed files with 156 additions and 93 deletions

View File

@@ -104,7 +104,7 @@
# define LIBSSH2_3DES 1
#endif
#define libssh2_random(buf, len) RAND_bytes ((buf), (len))
#define _libssh2_random(buf, len) RAND_bytes ((buf), (len))
#define libssh2_sha1_ctx EVP_MD_CTX
#define libssh2_sha1_init(ctx) EVP_DigestInit(ctx, EVP_get_digestbyname("sha1"))