0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SSL系関数がインストールされている場所の確認

Last updated at Posted at 2017-04-29

Apacheに静的モジュールでインストールした際に、
具体的にモジュール内で定義されている関数(今回はtls12_get_hash)が
どのような変わっていくのか確認してみました。

opensslを共有ライブラリ、Apacheのmod_sslをDSOでインストールした場合

libsslにあるtls12_get_hashを利用
# readelf -Ws /usr/local/ssl/lib/libssl.so.1.0.0 | grep tls12_get_hash
   757: 0000000000037950    85 FUNC    GLOBAL DEFAULT   11 tls12_get_hash
   825: 0000000000037950    85 FUNC    GLOBAL DEFAULT   11 tls12_get_hash

opensslを非共有ライブラリ、Apacheのmod_sslをDSOでインストールした場合

mod_sslにあるtls12_get_hashを利用
# readelf -Ws /usr/local/apache2/modules/mod_ssl.so | grep tls12_get_hash
  5529: 0000000000077c80    85 FUNC    LOCAL  DEFAULT   11 tls12_get_hash

opensslを非共有ライブラリ、Apacheのmod_sslを静的モジュールとしてインストールした場合

httpdにあるtls12_get_hashを利用
# readelf -Ws  /usr/local/apache2/bin/httpd | grep tls12_get_hash
  5915: 0000000000501860    85 FUNC    GLOBAL DEFAULT   13 tls12_get_hash
  8305: 0000000000501860    85 FUNC    GLOBAL DEFAULT   13 tls12_get_hash
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?