Skip to content

Commit

Permalink
add comment.
Browse files Browse the repository at this point in the history
Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Nov 5, 2023
1 parent 578ce52 commit 214c8a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions user/module/probe_openssl_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ func (m *MOpenSSLProbe) detectOpenssl(soPath string) error {
isAndroid := m.conf.(*config.OpensslConfig).IsAndroid
// if not found, use default
if isAndroid {
// sometimes,boringssl version always was "boringssl 1.1.1" on android. but offsets are different.
// see kern/boringssl_a_13_kern.c and kern/boringssl_a_14_kern.c
// Perhaps we can utilize the Android Version to choose a specific version of boringssl.
// TODO : detect android version (use Android version?), and use the corresponding bpfFile

bpfFile, _ = m.sslVersionBpfMap[AndroidDefauleFilename]
m.logger.Printf("%s\tOpenSSL/BoringSSL version not found, used default version :%s\n", m.Name(), AndroidDefauleFilename)
} else {
Expand Down

0 comments on commit 214c8a1

Please sign in to comment.