15 lines
334 B
Python
15 lines
334 B
Python
#!/usr/bin/env python
|
|
import faulthandler
|
|
import signal
|
|
faulthandler.enable()
|
|
faulthandler.register(signal.SIGUSR1.value)
|
|
|
|
from OpenSSL._util import ffi
|
|
print("creating callback")
|
|
ffi.callback(
|
|
"int (*)(SSL *, unsigned char **, unsigned char *, "
|
|
"const unsigned char *, unsigned int, void *)",
|
|
lambda *_, **__: None
|
|
)
|
|
print("ok")
|