openssl.c (160814) | openssl.c (162911) |
---|---|
1/* apps/openssl.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 42 unchanged lines hidden (view full) --- 51 * SUCH DAMAGE. 52 * 53 * The licence and distribution terms for any publically available version or 54 * derivative of this code cannot be changed. i.e. this code cannot simply be 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58/* ==================================================================== | 1/* apps/openssl.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 42 unchanged lines hidden (view full) --- 51 * SUCH DAMAGE. 52 * 53 * The licence and distribution terms for any publically available version or 54 * derivative of this code cannot be changed. i.e. this code cannot simply be 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58/* ==================================================================== |
59 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | 59 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
60 * 61 * Redistribution and use in source and binary forms, with or without 62 * modification, are permitted provided that the following conditions 63 * are met: 64 * 65 * 1. Redistributions of source code must retain the above copyright 66 * notice, this list of conditions and the following disclaimer. 67 * --- 372 unchanged lines hidden (view full) --- 440 BIO_printf(bio_err,"openssl:Error: '%s' is an invalid command.\n", 441 argv[0]); 442 BIO_printf(bio_err, "\nStandard commands"); 443 i=0; 444 tp=0; 445 for (fp=functions; fp->name != NULL; fp++) 446 { 447 nl=0; | 60 * 61 * Redistribution and use in source and binary forms, with or without 62 * modification, are permitted provided that the following conditions 63 * are met: 64 * 65 * 1. Redistributions of source code must retain the above copyright 66 * notice, this list of conditions and the following disclaimer. 67 * --- 372 unchanged lines hidden (view full) --- 440 BIO_printf(bio_err,"openssl:Error: '%s' is an invalid command.\n", 441 argv[0]); 442 BIO_printf(bio_err, "\nStandard commands"); 443 i=0; 444 tp=0; 445 for (fp=functions; fp->name != NULL; fp++) 446 { 447 nl=0; |
448#ifdef OPENSSL_NO_CAMELLIA |
|
448 if (((i++) % 5) == 0) | 449 if (((i++) % 5) == 0) |
450#else 451 if (((i++) % 4) == 0) 452#endif |
|
449 { 450 BIO_printf(bio_err,"\n"); 451 nl=1; 452 } 453 if (fp->type != tp) 454 { 455 tp=fp->type; 456 if (!nl) BIO_printf(bio_err,"\n"); --- 4 unchanged lines hidden (view full) --- 461 "\nMessage Digest commands (see the `dgst' command for more details)\n"); 462 } 463 else if (tp == FUNC_TYPE_CIPHER) 464 { 465 i=1; 466 BIO_printf(bio_err,"\nCipher commands (see the `enc' command for more details)\n"); 467 } 468 } | 453 { 454 BIO_printf(bio_err,"\n"); 455 nl=1; 456 } 457 if (fp->type != tp) 458 { 459 tp=fp->type; 460 if (!nl) BIO_printf(bio_err,"\n"); --- 4 unchanged lines hidden (view full) --- 465 "\nMessage Digest commands (see the `dgst' command for more details)\n"); 466 } 467 else if (tp == FUNC_TYPE_CIPHER) 468 { 469 i=1; 470 BIO_printf(bio_err,"\nCipher commands (see the `enc' command for more details)\n"); 471 } 472 } |
473#ifdef OPENSSL_NO_CAMELLIA |
|
469 BIO_printf(bio_err,"%-15s",fp->name); | 474 BIO_printf(bio_err,"%-15s",fp->name); |
475#else 476 BIO_printf(bio_err,"%-18s",fp->name); 477#endif |
|
470 } 471 BIO_printf(bio_err,"\n\n"); 472 ret=0; 473 } 474end: 475 return(ret); 476 } 477 --- 41 unchanged lines hidden --- | 478 } 479 BIO_printf(bio_err,"\n\n"); 480 ret=0; 481 } 482end: 483 return(ret); 484 } 485 --- 41 unchanged lines hidden --- |