Metadata-Version: 2.5
Name: boringssl
Version: 2.0.0
Summary: Boringssl made available to python
Project-URL: Homepage, https://github.com/pyhacks/boringssl/
Author-email: pyhacks <enginyildirim111@gmail.com>
Keywords: C++,boringssl
Requires-Dist: rootwin
Description-Content-Type: text/markdown

# boringssl
[rootwin](https://github.com/pyhacks/rootwin) is used to access boringssl from python.

# Installation
```pip install boringssl```

# Usage
boringssl.**cpp_world**

You can find documentation about this object [here](https://github.com/pyhacks/rootwin#python-api)

# Example
```python
import boringssl
import rootwin


pssl_method = boringssl.cpp_world.TLS_method()
ssl_method = pssl_method.dereference()
pssl_protocol_method = ssl_method.method
ssl_protocol_method = pssl_protocol_method.dereference()
open_handshake = ssl_protocol_method.open_handshake.dereference()
print(open_handshake.prototype)
address = open_handshake.address_of()
address = rootwin.reinterpret_cast["void*"](address)
address = address.value
print(address)
```

# Version Info
Boringssl commit [673e61fc215b178a90c0e67858bbf162c8158993](https://github.com/google/boringssl/tree/673e61fc215b178a90c0e67858bbf162c8158993) is taken as a basis and then it is further patched using the [boringssl.patch](https://github.com/lexiforest/curl-impersonate/blob/9607b22ccf6c440e560c5f8ad5292b8044bb6dd7/patches/boringssl.patch) file from [curl-impersonate](https://github.com/lexiforest/curl-impersonate/tree/9607b22ccf6c440e560c5f8ad5292b8044bb6dd7) v1.5.2 in order for it to be compatible with [curl-cffi](https://github.com/lexiforest/curl_cffi) v0.15.0. 
