~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to demos/engines/rsaref/rsaref.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
        }
427
427
        if (!RSAref_Private_eay2ref(rsa,&RSAkey))
428
428
                goto err;
429
 
        if ((i=RSAPrivateEncrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey)) != 0)
 
429
        if ((i=RSAPrivateEncrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey)) != 0)
430
430
                {
431
431
                RSAREFerr(RSAREF_F_RSAREF_PRIVATE_ENCRYPT,i);
432
432
                outlen= -1;
444
444
 
445
445
        if (!RSAref_Public_eay2ref(rsa,&RSAkey))
446
446
                goto err;
447
 
        if ((i=RSAPublicDecrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey)) != 0)
 
447
        if ((i=RSAPublicDecrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey)) != 0)
448
448
                {
449
449
                RSAREFerr(RSAREF_F_RSAREF_PUBLIC_DECRYPT,i);
450
450
                outlen= -1;
481
481
 
482
482
        if (!RSAref_Public_eay2ref(rsa,&RSAkey))
483
483
                goto err;
484
 
        if ((i=RSAPublicEncrypt(to,(unsigned int)&outlen,(unsigned char *)from,len,&RSAkey,&rnd)) != 0)
 
484
        if ((i=RSAPublicEncrypt(to,(unsigned int *)&outlen,(unsigned char *)from,len,&RSAkey,&rnd)) != 0)
485
485
                {
486
486
                RSAREFerr(RSAREF_F_RSAREF_PUBLIC_ENCRYPT,i);
487
487
                outlen= -1;