问题标签 [security-framework]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
31 浏览

swift - SFButtonTypeOK 没有隐藏

我正在使用 SFAuthorizationPluginView 并想禁用 OK(箭头)按钮。Apple 文档提供了此代码来隐藏该按钮,但不幸的是它对我不起作用。

在此处输入图像描述

0 投票
0 回答
14 浏览

objective-c - 从 Keychain 获取证书并使用它来创建信任

我正在尝试从钥匙串中获取任何证书并尝试在其上创建信任对象。

但是,当我运行此代码时,

结果返回一个字典。

当我尝试输入结果时,我得到 secondStatus 的 -50 错误,这意味着我的参数不正确。

为什么结果应该是 CFTypeRef 时返回字典?如何将 CFTypeRef 转换为 SecCertificateRef?