mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 22:03:46 -07:00
Update hydra-svn.c
This commit is contained in:
parent
1845c4476b
commit
fe7a606671
1 changed files with 4 additions and 4 deletions
|
@ -82,8 +82,8 @@ int32_t start_svn(int32_t s, char *ip, int32_t port, unsigned char options, char
|
|||
return 4;
|
||||
}
|
||||
|
||||
//if ((err = svn_client_create_context(&ctx, pool))) {
|
||||
if ((err = svn_client_create_context2(&ctx, NULL, pool))) {
|
||||
if ((err = svn_client_create_context(&ctx, pool))) {
|
||||
//if ((err = svn_client_create_context2(&ctx, NULL, pool))) {
|
||||
svn_handle_error2(err, stderr, FALSE, "hydra: ");
|
||||
return 4;
|
||||
}
|
||||
|
@ -106,8 +106,8 @@ int32_t start_svn(int32_t s, char *ip, int32_t port, unsigned char options, char
|
|||
snprintf(URL, sizeof(URL), "svn://%s:%d/%s", hydra_address2string_beautiful(ip), port, URLBRANCH);
|
||||
dirents = SVN_DIRENT_KIND;
|
||||
canonical = svn_uri_canonicalize(URL, pool);
|
||||
//err = svn_client_list2(canonical, &revision, &revision, svn_depth_unknown, dirents, FALSE, print_dirdummy, NULL, ctx, pool);
|
||||
err = svn_client_list3(canonical, &revision, &revision, svn_depth_unknown, dirents, FALSE, FALSE, (svn_client_list_func2_t) print_dirdummy, NULL, ctx, pool);
|
||||
err = svn_client_list2(canonical, &revision, &revision, svn_depth_unknown, dirents, FALSE, print_dirdummy, NULL, ctx, pool);
|
||||
//err = svn_client_list3(canonical, &revision, &revision, svn_depth_unknown, dirents, FALSE, FALSE, (svn_client_list_func2_t) print_dirdummy, NULL, ctx, pool);
|
||||
|
||||
svn_pool_clear(pool);
|
||||
svn_pool_destroy(pool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue