Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net-srv-vpn
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net-srv-vpn
Commits
2159734f
Commit
2159734f
authored
5 years ago
by
Alexandr Mruchok
Browse files
Options
Downloads
Patches
Plain Diff
[-] removed dap_server_http_db_auth dap_server_http_db linkage for android
parent
4e092d8b
No related branches found
No related tags found
1 merge request
!5
Feature 2648
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+11
-7
11 additions, 7 deletions
CMakeLists.txt
dap_chain_net_srv_vpn_cdb.c
+4
-1
4 additions, 1 deletion
dap_chain_net_srv_vpn_cdb.c
dap_chain_net_srv_vpn_cdb_server_list.c
+1
-1
1 addition, 1 deletion
dap_chain_net_srv_vpn_cdb_server_list.c
with
16 additions
and
9 deletions
CMakeLists.txt
+
11
−
7
View file @
2159734f
...
@@ -3,19 +3,18 @@ project (dap_chain_net_srv_vpn)
...
@@ -3,19 +3,18 @@ project (dap_chain_net_srv_vpn)
set
(
DAP_CHAIN_NET_SRV_VPN_SRCS
set
(
DAP_CHAIN_NET_SRV_VPN_SRCS
dap_chain_net_srv_vpn.c
dap_chain_net_srv_vpn.c
dap_chain_net_srv_vpn_cdb.c
dap_chain_net_srv_vpn_cdb.c
dap_chain_net_srv_vpn_cdb_server_list.c
dap_chain_net_srv_vpn_cdb_server_list.c
dap_chain_net_vpn_client.c
dap_chain_net_vpn_client.c
dap_chain_net_vpn_client_tun.c
dap_chain_net_vpn_client_tun.c
)
)
set
(
DAP_CHAIN_NET_SRV_VPN_HEADERS
set
(
DAP_CHAIN_NET_SRV_VPN_HEADERS
dap_chain_net_srv_vpn.h
dap_chain_net_srv_vpn.h
dap_chain_net_srv_vpn_cdb.h
dap_chain_net_srv_vpn_cdb.h
dap_chain_net_srv_vpn_cdb_server_list.h
dap_chain_net_srv_vpn_cdb_server_list.h
dap_chain_net_vpn_client.h
dap_chain_net_vpn_client.h
dap_chain_net_vpn_client_tun.h
dap_chain_net_vpn_client_tun.h
)
)
if
(
WIN32
)
if
(
WIN32
)
...
@@ -30,8 +29,13 @@ endif()
...
@@ -30,8 +29,13 @@ endif()
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_CHAIN_NET_SRV_VPN_SRCS
}
${
DAP_CHAIN_NET_SRV_VPN_HEADERS
}
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
DAP_CHAIN_NET_SRV_VPN_SRCS
}
${
DAP_CHAIN_NET_SRV_VPN_HEADERS
}
)
target_link_libraries
(
dap_chain_net_srv_vpn dap_core dap_crypto dap_chain dap_chain_crypto dap_chain_net dap_chain_net_srv dap_server_http_db dap_server_http_db_auth
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core dap_crypto dap_chain dap_chain_crypto dap_chain_net dap_chain_net_srv
)
target_include_directories
(
dap_chain_net_srv_vpn INTERFACE .
)
if
(
NOT ANDROID
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_server_http_db_auth dap_server_http_db
)
endif
()
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE .
)
set
(
${
PROJECT_NAME
}
_DEFINITIONS CACHE INTERNAL
"
${
PROJECT_NAME
}
: Definitions"
FORCE
)
set
(
${
PROJECT_NAME
}
_DEFINITIONS CACHE INTERNAL
"
${
PROJECT_NAME
}
: Definitions"
FORCE
)
...
...
This diff is collapsed.
Click to expand it.
dap_chain_net_srv_vpn_cdb.c
+
4
−
1
View file @
2159734f
...
@@ -28,10 +28,12 @@
...
@@ -28,10 +28,12 @@
#include
"dap_enc_http.h"
#include
"dap_enc_http.h"
#include
"dap_http.h"
#include
"dap_http.h"
#ifndef __ANDROID__
#include
"db_core.h"
#include
"db_core.h"
#include
"db_auth.h"
#include
"db_auth.h"
#include
"db_http.h"
#include
"db_http.h"
#include
"db_http_file.h"
#include
"db_http_file.h"
#endif
#include
"dap_chain.h"
#include
"dap_chain.h"
#include
"dap_chain_net.h"
#include
"dap_chain_net.h"
...
@@ -240,6 +242,7 @@ void dap_chain_net_srv_vpn_cdb_deinit()
...
@@ -240,6 +242,7 @@ void dap_chain_net_srv_vpn_cdb_deinit()
*/
*/
static
void
s_auth_callback
(
enc_http_delegate_t
*
a_delegate
,
void
*
a_arg
)
static
void
s_auth_callback
(
enc_http_delegate_t
*
a_delegate
,
void
*
a_arg
)
{
{
#ifndef __ANDROID__
db_auth_info_t
*
l_auth_info
=
(
db_auth_info_t
*
)
a_arg
;
db_auth_info_t
*
l_auth_info
=
(
db_auth_info_t
*
)
a_arg
;
log_it
(
L_DEBUG
,
"Authorized, now need to create conditioned transaction if not present"
);
log_it
(
L_DEBUG
,
"Authorized, now need to create conditioned transaction if not present"
);
...
@@ -290,5 +293,5 @@ static void s_auth_callback(enc_http_delegate_t* a_delegate, void * a_arg)
...
@@ -290,5 +293,5 @@ static void s_auth_callback(enc_http_delegate_t* a_delegate, void * a_arg)
}
}
enc_http_reply_f
(
a_delegate
,
"
\t
</tx_cond_tpl>
\n
"
);
enc_http_reply_f
(
a_delegate
,
"
\t
</tx_cond_tpl>
\n
"
);
}
}
#endif
}
}
This diff is collapsed.
Click to expand it.
dap_chain_net_srv_vpn_cdb_server_list.c
+
1
−
1
View file @
2159734f
...
@@ -110,7 +110,7 @@ static void s_http_simple_proc(dap_http_simple_t *a_http_simple, void *a_arg)
...
@@ -110,7 +110,7 @@ static void s_http_simple_proc(dap_http_simple_t *a_http_simple, void *a_arg)
char
l_node_ext_ipv6_str
[
INET6_ADDRSTRLEN
]
=
{
0
};
char
l_node_ext_ipv6_str
[
INET6_ADDRSTRLEN
]
=
{
0
};
if
(
l_node_info
->
hdr
.
ext_addr_v4
.
s_addr
)
if
(
l_node_info
->
hdr
.
ext_addr_v4
.
s_addr
)
inet_ntop
(
AF_INET
,
&
l_node_info
->
hdr
.
ext_addr_v4
,
l_node_ext_ipv4_str
,
sizeof
(
l_node_ext_ipv4_str
));
inet_ntop
(
AF_INET
,
&
l_node_info
->
hdr
.
ext_addr_v4
,
l_node_ext_ipv4_str
,
sizeof
(
l_node_ext_ipv4_str
));
if
(
*
((
uint128_t
*
)
l_node_info
->
hdr
.
ext_addr_v6
.
__in6_u
.
__u
6_addr
8
)
)
if
(
*
((
uint128_t
*
)
l_node_info
->
hdr
.
ext_addr_v6
.
s
6_addr
)
)
inet_ntop
(
AF_INET6
,
&
l_node_info
->
hdr
.
ext_addr_v6
,
l_node_ext_ipv6_str
,
sizeof
(
l_node_ext_ipv6_str
));
inet_ntop
(
AF_INET6
,
&
l_node_info
->
hdr
.
ext_addr_v6
,
l_node_ext_ipv6_str
,
sizeof
(
l_node_ext_ipv6_str
));
dap_string_append_printf
(
l_reply_str
,
" {
\n
"
);
dap_string_append_printf
(
l_reply_str
,
" {
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment