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
O
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,
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 len
On 6 apr 2014, at 17:40, Varun Chandramohan
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 might be some bugs in Found
On 7 Apr 2014, at 10:40 am, Varun Chandramohan
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 comments to the list.
Contact the m
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
using
On Apr 3, 2014, at 9:54 PM, Jens Alfke wrote:
>
>
>> On Apr 3, 2014, at 7:47 PM, Varun Chandramohan
>> 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*
On Apr 3, 2014, at 7:47 PM, Varun Chandramohan
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
there is a very good reason to
Thanks Ken,
That helped.
Regards,
Varun
On 4/04/2014 11:16 am, "Ken Thomases" wrote:
>On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote:
>
>> On 4/04/2014 10:47 am, "Jerry Krinock" wrote:
>>
>>> On 2014 Apr 03, at 16:11, Varun Chandramohan
>>> wrote:
>>>
when I port the same code t
root user right?
Regards,
Varun
From: Jens Alfke mailto:j...@mooseyard.com>>
Date: Friday, 4 April 2014 11:47 am
To: Development
mailto:varun.chandramo...@wontok.com>>
Cc: "cocoa-dev@lists.apple.com<mailto:cocoa-dev@lists.apple.com>"
mailto:cocoa-dev@lists.apple.co
On Apr 3, 2014, at 4:11 PM, Varun Chandramohan
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 security practice — it
means that
On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote:
> On 4/04/2014 10:47 am, "Jerry Krinock" wrote:
>
>> On 2014 Apr 03, at 16:11, Varun Chandramohan
>> wrote:
>>
>>> when I port the same code to be used as a user daemon, I noticed that
>>> NSOperationQueue fails.
>>
>> I¹d suspect a run lo
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" wrote:
>
>On 2014 Apr 03, at 16:11, Varun Chandramohan
> wrote:
>
>> when I port the same code to be used as a user
On 2014 Apr 03, at 16:11, Varun Chandramohan
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.
__
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
dataWithByte
15 matches
Mail list logo