iOS local receipt validation with CommonCrypto framework - ios

Simple question: Did anyone manage to perform local receipt validation with CommonCrypto framework instead of OpenSSL and if yes - is there any sample code how to do that?
So, replace all OpenSSL related things from Apple docs (https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html) with CommonCrypto framework?
Something which looks like solution for OSX exists in here https://gist.github.com/sazameki/3026845 but I would like to know if there's anything like that available somewhere for iOS.
Thanks in advance for any kind of answer or advice.

Related

Openssh to IOS mail

looks like an old question, but I couldn't make my OpenSSL certs work with IOS mail app.
I am no expert, so I would need precise step-by-step instruction.
What I have: OpenSSL, Ubuntu or windows, iPhone SE with IOS 14.x
What I would like to do and be able to share: make my own key/certificate to use sign/encrypt (mime) mails from IOS app.
I have done that for thunderbird, but I am stuck with iPhone!
Thanks for help,
Best,
--Fred
There is no clear answer to your question on the Net as far as I know. So a nice way to have it solved once and for all... until Apple changes things again :)
Some people seem to have managed to make it work, adapting openssl config file and encapsulating data in right certificate.
Hope someone helps with this.
Best --FJ

AES 128 Bit IOS Encryption [duplicate]

I'm new to encrypting in iOS and i'm stuck with AES128 encryption. Is there some pre-built library (perhaps OpenSSL) which i can use easily?
If so, how do I implement it and use it? Are there tutorials?
I've found several "easy" tutorials how to build OpenSSL and import it to Xcode, but none of them worked for me. Also, it needs to be compatible with iOS4, so solution via CommonCrypto doesn't seem to be a solution (since several essential methods are only iOS 5+ compatible).
Thanks for any kind of help, i'm pulling my hair out over this :)
This is written in Obj-C and allows for AES128 encryption of NSString and NSData.
I take it back. It uses CommonCrypt.
If anyone is still interested in this question i found a solution on http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/ . On this page you can download very simple obj-c classes which are compatible with iOS4 and doesn't need any 3rd party libraries.

Any available frameworks for SIP for iphone?

Im supposed to use SIP for my application. I went through some documentation regarding SIP like ietf-sip-documentation , siphon , linphone for iphone and ipod. But nowhere they have mentioned about any available frameworks or any such a thing for implementation part. There are lot of things that are yet unsettling to me about SIP. I would love to get a little more clarity on this. Any help would be appreciated.
EDIT: I would want to know whether there are any frameworks available for ios or should we create our own classes for the interface?
Thanks
Doubango framework http://doubango.org/ / https://code.google.com/p/doubango/ also does a nice job here. C-based, so you would probably like to do your own Objective-C wrappers.
How about resiprocate or PJSIP? Both can be compiled for iOS. Do you also need RTP and media handling? If so, PJSIP has that built in as well.

JSONKit for iphone app?

Will apple choose to not allow an app to go to the app store if we use JSONKit to parse JSON's from our php document? I would like to use JSONSerializable but that is for ios5 and I am not going to alienate ios4 members on 3gs by doing that.
You can use JSONKit in an iPhone app. Apple will not reject it based on that.
It's using private APIs they get upset about. :)
No. You can import your own class or library to parse JSON that you want. So long as you aren't using anything within Apple API's that are undocumented, you will be more than fine. Those are all well established parsers. No worries.
Nope, assumably they are unable to tell what source files you use in your application. JSONKit is licensed under the BSD License which allows redistribution;
Redistribution and use in source and binary forms are permitted
provided that the above copyright notice...

Howto use Twitter-OAuth-iPhone with iOS5 and ARC

I am trying to use Ben Gottliebs Twitter-OAuth-iPhone within an iOS5 app that uses ARC.
I already flagged the files with -fno-objc-arc. But now I get a lot of errors. I don't know where to start. Without ARC the framework seems to work just fine. Any help would be appreciated.
Edit: it seems that is has something to do with SecKeychainItemRef
I can not find the answer here: https://stackoverflow.com/questions/3675522/how-to-use-mgtwitterengine-for-iphone
I hope is not considered bad etiquette to recommend my own project, but I believe it's relevant to this question, so...
I just published a new OAuth library to GitHub that's fully ARC compatible. It comes with a working demo that implements the whole Twitter OAuth flow and allows you to post a tweet. You can find it here: RSOAuthEngine.
You might want to consider using the official Twitter API that's available with iOS 5. Here's a post on how to use it: http://www.peterfriese.de/the-accounts-and-twitter-framework-on-ios-5/
You could just tell the compiler not to use ARC on the files included in that library.
ios5 ARC what is the compiler flag to exclude a file from ARC?

Resources