~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to apps/rsa.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 * [including the GNU Public Licence.]
57
57
 */
58
58
 
 
59
#include <openssl/opensslconf.h>
59
60
#ifndef OPENSSL_NO_RSA
60
61
#include <stdio.h>
61
62
#include <stdlib.h>
68
69
#include <openssl/evp.h>
69
70
#include <openssl/x509.h>
70
71
#include <openssl/pem.h>
 
72
#include <openssl/bn.h>
71
73
 
72
74
#undef PROG
73
75
#define PROG    rsa_main
307
309
                        BIO_printf(out,"RSA key ok\n");
308
310
                else if (r == 0)
309
311
                        {
310
 
                        long err;
 
312
                        unsigned long err;
311
313
 
312
314
                        while ((err = ERR_peek_error()) != 0 &&
313
315
                                ERR_GET_LIB(err) == ERR_LIB_RSA &&