Note that there are some explanatory texts on larger screens.

plurals
  1. POFlickr SDK is not converted in to the ARC
    primarykey
    data
    text
    <p>I want to integrate the flickr api to upload the image through my iphone application to flickr site. I had downloaded the code snap&amp;Runfrom github. i had integrated the same SDK code in my project.But it is showing me the error while convert in to the ARC. i had getting read line issues. Those errors are in OFUtilities.m file</p> <pre><code> static NSData *OFSha1(NSData *inData) { NSMutableData *result = [NSMutableData dataWithLength:CC_SHA1_DIGEST_LENGTH]; CC_SHA1_CTX context; CC_SHA1_Init(&amp;context); CC_SHA1_Update(&amp;context, [inData bytes], (CC_LONG)[inData length]); CC_SHA1_Final([result mutableBytes], &amp;context); return result; } </code></pre> <p><strong>In above method i have getting this error "No Matching Function for call CC_SHA1_Final"</strong></p> <pre><code>NSString *OFHMACSha1Base64(NSString *inKey, NSString *inMessage) { NSData *keyData = [inKey dataUsingEncoding:NSUTF8StringEncoding]; if ([keyData length] &gt; CC_SHA1_BLOCK_BYTES) { keyData = OFSha1(keyData); } if ([keyData length] &lt; CC_SHA1_BLOCK_BYTES) { NSUInteger padSize = CC_SHA1_BLOCK_BYTES - [keyData length]; NSMutableData *paddedData = [NSMutableData dataWithData:keyData]; [paddedData appendData:[NSMutableData dataWithLength:padSize]]; keyData = paddedData; } NSMutableData *oKeyPad = [NSMutableData dataWithLength:CC_SHA1_BLOCK_BYTES]; NSMutableData *iKeyPad = [NSMutableData dataWithLength:CC_SHA1_BLOCK_BYTES]; const uint8_t *kdPtr = [keyData bytes]; uint8_t *okpPtr = [oKeyPad mutableBytes]; uint8_t *ikpPtr = [iKeyPad mutableBytes]; memset(okpPtr, 0x5c, CC_SHA1_BLOCK_BYTES); memset(ikpPtr, 0x36, CC_SHA1_BLOCK_BYTES); NSUInteger i; for (i = 0; i &lt; CC_SHA1_BLOCK_BYTES; i++) { okpPtr[i] = okpPtr[i] ^ kdPtr[i]; ikpPtr[i] = ikpPtr[i] ^ kdPtr[i]; } NSData *msgData = [inMessage dataUsingEncoding:NSUTF8StringEncoding]; NSMutableData *innerData = [NSMutableData dataWithData:iKeyPad]; [innerData appendData:msgData]; NSData *innerDataHashed = OFSha1(innerData); NSMutableData *outerData = [NSMutableData dataWithData:oKeyPad]; [outerData appendData:innerDataHashed]; NSData *outerHashedData = OFSha1(outerData); size_t outputLength; char *outputBuffer = NewBase64Encode([outerHashedData bytes], [outerHashedData length], true, &amp;outputLength); NSString *result = [[[NSString alloc] initWithBytes:outputBuffer length:outputLength encoding:NSASCIIStringEncoding] autorelease]; free(outputBuffer); return result; } </code></pre> <p><strong>here i had getting the error is"canot initialize a variable of type 'const uint8_t' with an r value of type const value"</strong></p> <p>Please help me. Thanks in advanced.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload