-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of unresolved type X509 #9
Comments
Just wanted to jump in on this thread and write how I fixed it. I've been running around trying to figure out what happened to c2i_ASN1_INTEGER and it appears that in 2015 for OpenSSL 1.1.1 this method was moved into asn1_locl.h as a mechanism to hide it/make it private. I did not really research why this was moved, so one could use OpenSSL 1.1.0 or... one could re-expose this method by copying the missing function definition lines into my
|
By pasting |
Pretty much. The method is still there, it just needs to be exposed... I still can't figure out why it was privatized. Copying that declaration into asn1.h and compiling solves the issue. |
any solutions for the x509 case? |
Any feedback on it ? |
Fixed it up for 1.1.1d. I'll see if I can open a PR to update this project when I have time. DecodeAS1Integer now becomes:
Then Then for the x509 issues in the ReceiptSignatureValidator, just combine the two internal methods - no need to separate them out and return an x509 type, just keep the result as a let constant and operate on it right away.
|
Isn't that no longer needed at all, since it is a default? Also isn't there a memory free requirement on: |
Hi Guys, the reason these bugs come up in the ReceiptSignatureValidator class is because OpenSSL's X509 class, which contains the functionality used in ReceiptSignatureValidator is not imported in the bridging header. it can be imported by adding #import <openssl/x509.h> to the bridging header.h file. I hope this helps. |
You can avoid using the
Source: openssl/openssl#7538 (comment) |
Hi there. I'm attempting to compile the ReceiptValidator in my project and running in to a few errors.
Use of undeclared type X509
Use of unresolved identifier OpenSSL_add_all_digests
Use of unresolved identifier c2i_ASN1_INTEGER - This has been raised and a workaround identified in a different thread so lets ignore it for now!
I'm using openssl 1.1.1 using a script similar to that in the OpenSSL pod. I have added the bridging header as per the demo project. My understanding is a module map is NOT required (as we are using bridging headers)?
Any assistance is most appreciated. Thanks!
The text was updated successfully, but these errors were encountered: