I am trying to incorporate OpenSSL into a Swift OS X project to verify validation.
I have successfully created the necessary OpenSSL header and file files. I added them to my project, but it was not suggested to create a header file with a bridge. I manually created a bridge header file with C # import for each of the openssl header files. In setting up the project build, I set the target header of the C bridge under “fast compiler - code generation” in my bridge header. I created the ans1c files for the payload format as described in the validation validation guide: “Listing 1-1. Defining the ASN.1 payload format” and added them to my bridge header.
I get numerous compilation errors when creating, mainly for unknown type names in openSSL header files, which I thought would be defined in ans1c header files, but that is not the case. I also get the error "Failed to import the bridge header ... (my header file)."
I'm running out of ideas and may have to abandon openSSL to validate. If someone knows what I'm doing wrong, or if you have an alternative method for checking, I would love to hear that. My application will have IAP, so it seems to me that I need some way to verify the receipt.
source share