Age | Commit message (Collapse) | Author |
|
* Add error handling for all OpenSSL calls.
|
|
|
|
* Add error handling for all OpenSSL calls.
|
|
* Add error handling for all OpenSSL and Erlang calls.
|
|
|
|
|
|
* Bug fix: Some EVP_PKEY_* calls return <= 0 on failure and 1 on success.
|
|
* Bug fix: Some EVP_PKEY_* return <= 0 on failure and 1 on success.
* Fix a possible memory leak where enif_alloc_binary() wasn't converted
into a term or freed in all paths.
|
|
|
|
* Restructure the code so it exits early
* Check for allocation failures and free on partial result
|
|
* Add error handling for all Erlang calls.
* Change size from int to size_t.
|
|
* Add error handling for all Erlang calls.
* Change size from int to size_t since it's assigned to sizeof().
|
|
* Add error handling for all Erlang calls.
|
|
* Add error handling for all Erlang calls.
|
|
|
|
|
|
|
|
|
|
* Add bounds checks for allocation multiplication
* Simplify the error handling by adding a flag for whether the strings
were loaded.
|
|
|
|
|
|
* Add error handling for all OpenSSL calls.
|
|
|
|
* Add error handling for all Erlang calls.
|
|
|
|
|
|
|
|
* Add error handling for all OpenSSL calls.
- However, disable custom crypto mem functions for LibreSSL
since it has never supported it.
|
|
* Simplify error checking.
* Add bounds checking before casting.
* Add error checking for all OpenSSL calls.
|
|
* Add error handling for OpenSSL calls.
* Change dlen to signed since BN_num_bytes() returns int.
* Use enif_make_badarg() on error since it only returned
undefined before in one type of error.
|
|
* Add error checking for OpenSSL calls.
* Change dlen from unsigned to signed since BN_num_bytes is int.
* Add bounds checking before casting.
* Consolidate all freeing to one location on error or success.
|
|
* Add error handling for all OpenSSL calls
- There was nothing returned on error before so use enif_make_badarg().
* Add bounds checking before casting.
|
|
* Add bounds checking.
* Add error checking for OpenSSL calls.
* Only set *bnp on success.
|
|
* Add bounds checking.
* Add error checking for OpenSSL calls.
* Only set argument *bnp on success.
|
|
* Bounds check before casting.
|
|
* Add error handling for all OpenSSL calls.
|
|
* Add error checking for all OpenSSL calls.
|
|
* Add bounds check before casting.
|
|
* Add error checking and use enif_make_badarg() on error.
* Use size_t when using sizeof().
* Move initialization away from declaration so it's not as easy to miss.
|
|
* Change the parameter from int to size_t.
- Only caller doesn't need to change since it was already passing sizeof().
* Add unsigned wrapping checks.
|
|
* Simplify logic by having incremental allocation and only free on error on one place.
* Add error checking on all OpenSSL calls.
* Make it explicit when you need to be careful with non-reference counted pointers.
- set0 calls will use the pointer values without ref counting.
- On success, set pointers to NULL to avoid double frees since the struct
is now responsible for freeing the resources.
|
|
* Simplify logic by having incremental allocation and only free on error
in one place.
* Add error checking on all OpenSSL calls.
* Make it explicit when you need to be careful with non-ref counted pointers.
- set0 calls will save the pointer without reference counting.
- On success, set pointers to NULL to avoid double frees since the struct
is now responsible for freeing the resources.
|
|
* Bug fix: ECDH_compute_key was not being checked for failures
- That function returns 0 on failure and never returns < 0.
- Using <= 0 check because OpenSSL uses that internally and on their wiki.
* Remove unnecessary variable i
* Make the gotos always flow downward rather than jumping back.
|
|
* Check return values on all OpenSSL and Erlang calls.
* Remove trailing semicolon after function definition.
|
|
* Check return values on all OpenSSL calls.
* Remove trailing semicolon after function definition.
|
|
* Fix a possible memory leak where enif_alloc_binary() wasn't always
converted into a term or freed in the error path.
|
|
* Bounds check key.size before casting.
|
|
* pkey is only set on success.
|
|
* Add additional error checking.
|
|
* Add error checking on all OpenSSL and Erlang calls.
|