我对此提起了新的意见......我想在SSL服务器证书中查看CN ...我该如何实现?我正在使用NSURLConnection委托方法canAuthenticateAgainstProtectionSpace和didReceiveAuthenticationChallenge.
因为我对这个问题很陌生,所以这个问题可能看起来很微不足道,所以请不要用我父母的名字称呼我...我有 unsigned char 和 NSString ..我想将 char 值分配给字符串.. .这是代码片段..
NSString *passwordDgst = @"somepassword";
unsigned char passwordDgstchar[CC_SHA512_DIGEST_LENGTH];
CC_SHA512(passwordDgst,
passwordDgst.length,
passwordDgstchar);
Run Code Online (Sandbox Code Playgroud)
现在我想将 unsigned char passwordDgstchar 的值赋给字符串 passwordDgst。我怎样才能做到这一点?
objective-c ×2