~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to musicPlayer/src/applet-amazon.c

  • Committer: Matthieu Baerts
  • Date: 2012-09-26 00:22:19 UTC
  • Revision ID: matttbe@gmail.com-20120926002219-e8afhgt27f5n3buw
Compilation: fixed a lot of warnings during the compilation (mostly 'unused-variable') - Part 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
#define LICENCE_KEY "AKIAIAW2QBGIHVG4UIKA"  // if you reuse the code below, please take the time to make your own key !
130
130
#define PRIVATE_KEY "j7cHTob2EJllKGDScXCvuzTB108WDPpIUnVQTC4P"  // please do not use this key ! It is reserved for Cairo-Dock.
131
131
 
132
 
static gchar *_hmac_crypt (const gchar *text, const gchar* key, GChecksumType iType)
 
132
static gchar *_hmac_crypt (const guchar *text, const gchar* key, GChecksumType iType)
133
133
{
134
134
        cd_debug ("%s (%s)\n", __func__, text);
135
135
        unsigned char k_ipad[65];    // inner padding - key XORd with ipad
253
253
        cd_debug ("cRequest : '%s'\n", cRequest);
254
254
        //gchar *cRequest = g_strdup_printf (REQUEST, (cArtist), LICENCE_KEY, (cKeyWords), _url_encode (cTimeStamp));
255
255
        
256
 
        gchar *cBuffer = g_strconcat (HEADER, cRequest, NULL);
 
256
        guchar *cBuffer = (guchar *) g_strconcat (HEADER, cRequest, NULL);
257
257
        
258
258
        *cSignature = _hmac_crypt (cBuffer, PRIVATE_KEY, G_CHECKSUM_SHA256);
259
259
        cd_debug ("cSignature : '%s'", *cSignature);