如何访问openSSL-1.1.1中struct bio_st的成员编号 [英] how to access the member num of struct bio_st in openSSL-1.1.1

查看:98
本文介绍了如何访问openSSL-1.1.1中struct bio_st的成员编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 OpenSSL-1.1.1 中,struct bio_st 变得不透明.为了访问 struct 的成员,提供了 API.但是我没有找到访问该结构的成员 int num 的 API.

in OpenSSL-1.1.1, struct bio_st is made opaque. To access the member of struct, APIs are provided. But I do not find an API to access the member int num of this struct.

在我的应用程序代码中使用 openSSL-1.0.2

in my application code with openSSL-1.0.2

fd_set fds;
FD_ZERO( &fds );
FD_SET( b->num, &fds );

现在我明白了

错误:取消引用指向不完整类型'BIO {aka struct bio_st}'的指针FD_SET( b->num, &fds );

error: dereferencing pointer to incomplete type 'BIO {aka struct bio_st}' FD_SET( b->num, &fds );

有人知道吗?

推荐答案

使用宏 BIO_get_fd 来获取.

这篇关于如何访问openSSL-1.1.1中struct bio_st的成员编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆