Skip to content

Commit

Permalink
cli : remove other modules on android.
Browse files Browse the repository at this point in the history
Signed-off-by: CFC4N <[email protected]>
  • Loading branch information
cfc4n committed Oct 30, 2022
1 parent fce7f24 commit bdae4be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cli/cmd/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ func openSSLCommandFunc(command *cobra.Command, args []string) {
version, err = kernel.HostVersion()
logger.Printf("ECAPTURE :: Kernel Info : %s", version.String())

modNames := []string{module.MODULE_NAME_OPENSSL, module.MODULE_NAME_GNUTLS, module.MODULE_NAME_NSPR, module.MODULE_NAME_GOSSL}
modNames := []string{}
if oc.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}
}

var runMods uint8
var runModules = make(map[string]module.IModule)
Expand Down
2 changes: 1 addition & 1 deletion user/module/probe_openssl_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (this *MOpenSSLProbe) detectOpenssl(soPath string) error {
case elf.EM_X86_64:
case elf.EM_AARCH64:
default:
return fmt.Errorf("unsupported arch library ,ELF Header Machine is :%s", r.FileHeader.Machine.String())
return fmt.Errorf("unsupported arch library ,ELF Header Machine is :%s, must be one of EM_X86_64/EM_AARCH64", r.FileHeader.Machine.String())
}

s := r.Section(".rodata")
Expand Down

0 comments on commit bdae4be

Please sign in to comment.