| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 40a5a93 commit d6759db
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,9 +39,7 @@ namespace crypto { | |||
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | 41 | BIOPointer NodeBIO::New(Environment* env) { | |
| 42 | - // The const_cast doesn't violate const correctness. OpenSSL's usage of | ||
| 43 | - // BIO_METHOD is effectively const but BIO_new() takes a non-const argument. | ||
| 44 | - BIOPointer bio(BIO_new(const_cast<BIO_METHOD*>(GetMethod()))); | ||
| 42 | + BIOPointer bio(BIO_new(GetMethod())); | ||
| 45 | 43 | if (bio && env != nullptr) | |
| 46 | 44 | NodeBIO::FromBIO(bio.get())->env_ = env; | |
| 47 | 45 | return bio; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments