Skip to content

Commit

Permalink
disable gnutls/nss module on Android.
Browse files Browse the repository at this point in the history
Signed-off-by: CFC4N <[email protected]>
  • Loading branch information
cfc4n committed Nov 19, 2022
1 parent ab51acc commit bbdf676
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func openSSLCommandFunc(command *cobra.Command, args []string) {
logger.Printf("ECAPTURE :: Kernel Info : %s", version.String())

modNames := []string{}
if oc.IsAndroid {
if config.ELF_ARCH_ISANDROID {
modNames = []string{module.MODULE_NAME_OPENSSL}
} else {
modNames = []string{module.MODULE_NAME_OPENSSL, module.MODULE_NAME_GNUTLS, module.MODULE_NAME_NSPR, module.MODULE_NAME_GOSSL}
Expand Down
2 changes: 2 additions & 0 deletions user/config/common_androidgki.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var (
}
)

const ELF_ARCH_ISANDROID = true

func GetDynLibDirs() []string {
return default_so_paths
}
3 changes: 2 additions & 1 deletion user/config/common_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ package config
import "log"

const (
LD_LOAD_PATH = "/etc/ld.so.conf"
LD_LOAD_PATH = "/etc/ld.so.conf"
ELF_ARCH_ISANDROID = false
)

/*
Expand Down

0 comments on commit bbdf676

Please sign in to comment.