【问题标题】:how to access the member num of struct bio_st in openSSL-1.1.1如何在 openSSL-1.1.1 中访问 struct bio_st 的成员编号
【发布时间】:2019-06-14 10:56:30
【问题描述】:

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

在我的应用程序代码中使用 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);

有人知道吗?

【问题讨论】:

    标签: openssl


    【解决方案1】:

    使用宏BIO_get_fd 来获得这个。

    【讨论】:

      猜你喜欢
      • 2012-03-08
      • 1970-01-01
      • 2019-03-14
      • 1970-01-01
      • 1970-01-01
      • 2018-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多