I have a wchar_t * that I need to use on a function that needs a CFStringref
I tried using CFStringCreateWithCharacters but I’m not getting anywhere with it.
So, if I have:
wchar_t * widecharvar = L"some value";
CFStringRef stringref;
How do I convert and copy widecharvar to stringref? This value will be used in SecRequirementCreateWithString()
Thanks
I’m doing this off the top of my head and memory; if it has trouble, comment and I’ll actually test it.
That last
falsemeans that string does not include a BOM (Byte Order Mark), which is the kind of string I assume you’re dealing with.