Hi Ken,
Sorry for opening up old thread. I noticed that the code I shared earlier
has stopped working in my app.
QCCAESPadCryptor * op;
NSString *licenseKey = nil;
NSOperationQueue *queue;
op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData
dataWithBytes:cyphertext_dat
On Apr 21, 2014, at 5:47 PM, Varun Chandramohan wrote:
op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData
dataWithBytes:cyphertext_dat length:sizeof(cyphertext_dat)]
keyData:[NSData
dataWithBytes:key_dat length:sizeof(key_dat)]
Hi Ken,
You are right this is not NSOp issues as it seems to have finished.
[queue waitUntilAllOperationsAreFinished];
[op isCancelled] replied with NO
[op isFinished] with YES
So this has to be some QCCAESPadCryptor internal error. Ill investigate
this further. Thank you.
Regards,
Varun
Thanks for the answers guys, I agree that Authorization Services API is
not feasible in many cases. However I did make sure that daemon that runs
as root has very minimal to do and hopefully well written code that is not
exploitable. My only worry was that the code I wrote for root daemon was
On 7 Apr 2014, at 10:40 am, Varun Chandramohan varun.chandramo...@wontok.com
wrote:
I was hoping
I repeat: Code Defensively.
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On 6 apr 2014, at 17:40, Varun Chandramohan varun.chandramo...@wontok.com
wrote:
My only worry was that the code I wrote for root daemon was
using CoreFoundation and later replaced with Foundation APIs as they lot
easier to code and maintain. I saw few people warning against that as
there
Hi All,
I have some basic decryption I do with common crypto that works very well when
I use in my app, some sample code below.
QCCAESPadCryptor * op;
NSString *licenseKey = nil;
NSOperationQueue *queue;
op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData
On 2014 Apr 03, at 16:11, Varun Chandramohan varun.chandramo...@wontok.com
wrote:
when I port the same code to be used as a user daemon, I noticed that
NSOperationQueue fails.
I’d suspect a run loop issue. For example, maybe your daemon is exitting
before the operation begins.
Oh you mean, the runloop has not been initialised and the daemon is
exiting before that?
That could be the cause. Thanks I will investigate.
On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote:
On 2014 Apr 03, at 16:11, Varun Chandramohan
varun.chandramo...@wontok.com wrote:
when I
On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote:
On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote:
On 2014 Apr 03, at 16:11, Varun Chandramohan
varun.chandramo...@wontok.com wrote:
when I port the same code to be used as a user daemon, I noticed that
NSOperationQueue fails.
On Apr 3, 2014, at 4:11 PM, Varun Chandramohan varun.chandramo...@wontok.com
wrote:
I suspect that NSOperationQueue cannot be used as daemon running as root user?
This isn’t directly related to your question, but you almost certainly
shouldn’t be running your code as root. That’s a bad
@lists.apple.commailto:cocoa-dev@lists.apple.com
Subject: Re: NSOperation Issues
On Apr 3, 2014, at 4:11 PM, Varun Chandramohan
varun.chandramo...@wontok.commailto:varun.chandramo...@wontok.com wrote:
I suspect that NSOperationQueue cannot be used as daemon running as root user?
This isn't directly related
Thanks Ken,
That helped.
Regards,
Varun
On 4/04/2014 11:16 am, Ken Thomases k...@codeweavers.com wrote:
On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote:
On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote:
On 2014 Apr 03, at 16:11, Varun Chandramohan
On Apr 3, 2014, at 7:47 PM, Varun Chandramohan varun.chandramo...@wontok.com
wrote:
I understand what you mean, but are you saying that I should not use any
Foundation library functions when running as root user?
I’m saying you shouldn’t run *anything*, Foundation or not, as root unless
On Apr 3, 2014, at 9:54 PM, Jens Alfke j...@mooseyard.com wrote:
On Apr 3, 2014, at 7:47 PM, Varun Chandramohan
varun.chandramo...@wontok.com wrote:
I understand what you mean, but are you saying that I should not use any
Foundation library functions when running as root user?
I’m
15 matches
Mail list logo