I´m using the AFNetworking library to perform my requests. Now I'm facing the problem with untrusted certificates. I have a constants class in wich if I set the _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_ all the untrusted certificates work. If I delete that constant I receive a -1202 code error("The certificate for this server is invalid....").
My problem is that I need to allow the user to decide if they'd like to accept invalid certificates.
Do I have a way to insert/delete a #define programmatically? Thanks in advance!!