@@ -29,7 +29,7 @@ struct bio_new_fp_flags
2929inline FILE *bio_to_fp (BIO *bio) noexcept
3030{
3131 FILE *fp{};
32- ::fast_io::noexcept_call (BIO_ctrl, bio, BIO_C_GET_FILE_PTR, 0 , reinterpret_cast <char *>(__builtin_addressof(fp)));
32+ ::fast_io::noexcept_call (:: BIO_ctrl, bio, BIO_C_GET_FILE_PTR, 0 , reinterpret_cast <char *>(__builtin_addressof(fp)));
3333 return fp;
3434}
3535
@@ -69,7 +69,7 @@ inline decltype(auto) get_cookie_data_from_void_ptr_data(void *data) noexcept
6969template <typename stm>
7070inline decltype (auto ) get_cookie_data_from_bio_data(BIO *bio) noexcept
7171{
72- return get_cookie_data_from_void_ptr_data<stm>(noexcept_call (BIO_get_data, bio));
72+ return get_cookie_data_from_void_ptr_data<stm>(noexcept_call (:: BIO_get_data, bio));
7373}
7474
7575} // namespace details
@@ -147,7 +147,7 @@ struct bio_io_cookie_functions_t
147147 if constexpr (!::std::is_reference_v<stm> && !::std::is_trivially_copyable_v<value_type>)
148148 {
149149 functions.destroy = [](BIO *bbio) noexcept -> int {
150- delete reinterpret_cast <value_type *>(noexcept_call (BIO_get_data, bbio));
150+ delete reinterpret_cast <value_type *>(noexcept_call (:: BIO_get_data, bbio));
151151 return 1 ;
152152 };
153153 }
@@ -173,7 +173,7 @@ namespace details
173173
174174inline BIO *bio_new_stream_type (bio_method_st const *methods)
175175{
176- auto bio{::fast_io::noexcept_call (BIO_new, methods)};
176+ auto bio{::fast_io::noexcept_call (:: BIO_new, methods)};
177177 if (bio == nullptr )
178178 {
179179 throw_openssl_error ();
@@ -191,7 +191,7 @@ inline BIO *construct_bio_by_t(void *ptr)
191191 = bio_method_st const *;
192192 auto bp{bio_new_stream_type (reinterpret_cast <bio_method_st_const_may_alias_ptr>(
193193 __builtin_addressof (bio_io_cookie_functions<stm>.functions )))};
194- ::fast_io::noexcept_call (BIO_set_data, bp, ptr);
194+ ::fast_io::noexcept_call (:: BIO_set_data, bp, ptr);
195195 return bp;
196196}
197197
@@ -257,7 +257,7 @@ inline BIO *construct_bio_by_args(Args &&...args)
257257
258258inline BIO *open_bio_with_fp_phase2 (FILE *fp, int om)
259259{
260- auto bio{::fast_io::noexcept_call (BIO_new_fp, fp, om)};
260+ auto bio{::fast_io::noexcept_call (:: BIO_new_fp, fp, om)};
261261 if (bio == nullptr ) [[unlikely]]
262262 {
263263 throw_openssl_error ();
@@ -383,7 +383,7 @@ class basic_bio_file : public basic_bio_io_observer<ch_type>
383383 {
384384 if (this ->bio ) [[likely]]
385385 {
386- noexcept_call (BIO_free, this ->bio );
386+ noexcept_call (:: BIO_free, this ->bio );
387387 }
388388 this ->bio = newhandle;
389389 }
@@ -398,7 +398,7 @@ class basic_bio_file : public basic_bio_io_observer<ch_type>
398398 {
399399 if (this ->bio ) [[likely]]
400400 {
401- noexcept_call (BIO_free, this ->bio );
401+ noexcept_call (:: BIO_free, this ->bio );
402402 }
403403 this ->bio = bf.bio ;
404404 bf.bio = nullptr ;
@@ -408,7 +408,7 @@ class basic_bio_file : public basic_bio_io_observer<ch_type>
408408 {
409409 if (this ->bio ) [[likely]]
410410 {
411- int ret{noexcept_call (BIO_free, this ->bio )};
411+ int ret{noexcept_call (:: BIO_free, this ->bio )};
412412 this ->bio = nullptr ;
413413 if (!ret) [[unlikely]]
414414 {
@@ -420,7 +420,7 @@ class basic_bio_file : public basic_bio_io_observer<ch_type>
420420 {
421421 if (this ->bio ) [[likely]]
422422 {
423- noexcept_call (BIO_free, this ->bio );
423+ noexcept_call (:: BIO_free, this ->bio );
424424 }
425425 }
426426};
@@ -441,7 +441,7 @@ namespace details
441441inline ::std::byte *bio_read_impl (BIO *bio, ::std::byte *first, ::std::byte *last)
442442{
443443 ::std::size_t read_bytes{};
444- if (::fast_io::noexcept_call (BIO_read_ex, bio, first, static_cast <::std::size_t >(last - first),
444+ if (::fast_io::noexcept_call (:: BIO_read_ex, bio, first, static_cast <::std::size_t >(last - first),
445445 __builtin_addressof (read_bytes)) == -1 )
446446 {
447447 throw_openssl_error ();
@@ -452,7 +452,7 @@ inline ::std::byte *bio_read_impl(BIO *bio, ::std::byte *first, ::std::byte *las
452452inline ::std::byte const *bio_write_impl (BIO *bio, ::std::byte const *first, ::std::byte const *last)
453453{
454454 ::std::size_t written_bytes{};
455- if (::fast_io::noexcept_call (BIO_write_ex, bio, first, static_cast <::std::size_t >(last - first),
455+ if (::fast_io::noexcept_call (:: BIO_write_ex, bio, first, static_cast <::std::size_t >(last - first),
456456 __builtin_addressof (written_bytes)) == -1 )
457457 {
458458 throw_openssl_error ();
@@ -588,12 +588,12 @@ inline void print_define_openssl_error(output out)
588588{
589589 if constexpr (::std::same_as<output, bio_io_observer>)
590590 {
591- ::fast_io::noexcept_call (ERR_print_errors, out.bio);
591+ ::fast_io::noexcept_call (:: ERR_print_errors, out.bio);
592592 }
593593 else
594594 {
595595 bio_file bf (io_cookie_type<output>, out);
596- ::fast_io::noexcept_call (ERR_print_errors, bf.bio);
596+ ::fast_io::noexcept_call (:: ERR_print_errors, bf.bio);
597597 }
598598}
599599
0 commit comments