To be honest i dont understand the code in detail, but i hope this helps:
```
xlog("L_INFO", "MY_LOG HANDLE_TLS tls_peer_subject :
$tls_peer_subject\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS tls_peer_subject_uid: :
$tls_peer_subject_uid\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject) :
$sel(tls.peer.subject)\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject.uid):
$sel(tls.peer.subject.uid)\n");
xlog("L_INFO", "MY_LOG: HANDLE_TLS add Header X-TLS-User:
$sel(tls.peer.subject.uid)\n");
```
```
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 1
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/select.c:412]: run_select(): Calling SELECT 0x7f5b79367388
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 2
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:784]:
pv_comp(): ind_local = 6
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:808]:
pv_comp(): ind_local before switch = 0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = ffffffff
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:711]:
get_comp(): nid = 0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:722]:
get_comp(): Element Unknown not found in certificate subject/issuer
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) INFO: <script>: MY_LOG HANDLE_TLS
tls_peer_subject : <null>
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:784]:
pv_comp(): ind_local = 100006
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:808]:
pv_comp(): ind_local before switch = 100000
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) INFO: <script>: MY_LOG HANDLE_TLS
tls_peer_subject_uid: : denzs
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/select.c:412]: run_select(): Calling SELECT 0x7f5b79351a38
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 1
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) INFO: <script>: MY_LOG HANDLE_TLS
sel(tls.peer.subject) : Sebastian Denz
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/select.c:412]: run_select(): Calling SELECT 0x7f5b7939bea0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) INFO: <script>: MY_LOG HANDLE_TLS
sel(tls.peer.subject.uid): denzs
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/select.c:412]: run_select(): Calling SELECT 0x7f5b7939bea0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) INFO: <script>: MY_LOG:
HANDLE_TLS add Header X-TLS-User: denzs
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/parser/msg_parser.c:185]: get_hdr_field(): content_length=0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/parser/msg_parser.c:89]: get_hdr_field(): found end of header
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: <core>
[core/select.c:412]: run_select(): Calling SELECT 0x7f5b7939bea0
Feb 14 08:59:44 edgar-dev kamailio[4078]: 11(4091) DEBUG: tls [tls_select.c:709]:
get_comp(): after X509_NAME_get_index_by_NID index = 0
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1843#issuecomment-463530344