From 74d7abc2ab54e725f7cfbc2fa7bad95f93e4dc63 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sat, 27 Feb 1999 12:17:40 +0000 Subject: [PATCH] Get rid of remaining C++-style comments which strict C compilers hate. (Pointed out by Carlos Amengual). --- CHANGES | 3 +++ crypto/bio/bss_sock.c | 2 +- crypto/bn/exp.c | 6 +++--- crypto/bn/test.c | 10 +++++----- crypto/comp/comp_err.c | 2 +- crypto/rand/md_rand.c | 14 +++++++------- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/CHANGES b/CHANGES index 6be84d728f..2aa108ef0f 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,9 @@ Changes between 0.9.1c and 0.9.2 + + *) Get rid of remaining C++-style comments which strict C compilers hate. + [Ralf S. Engelschall, pointed out by Carlos Amengual] *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not compiled in by default: it has problems with large keys. diff --git a/crypto/bio/bss_sock.c b/crypto/bio/bss_sock.c index 299787aa1d..cfd2f11992 100644 --- a/crypto/bio/bss_sock.c +++ b/crypto/bio/bss_sock.c @@ -385,7 +385,7 @@ int i; err=get_last_sys_error(); #endif -#if defined(WINDOWS) && 0 /* more microsoft stupidity *//* perhaps not? Ben 4/1/99 */ +#if defined(WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ if ((i == -1) && (err == 0)) return(1); #endif diff --git a/crypto/bn/exp.c b/crypto/bn/exp.c index 6a24fee749..dd49d967a4 100644 --- a/crypto/bn/exp.c +++ b/crypto/bn/exp.c @@ -43,12 +43,12 @@ char *argv[]; ms_time_get(start); for (i=0; i words)?words:t2.top; t3.neg=t2.neg; t3.max=t3.top; -// BN_print_fp(stdout,&s1); printf(" s1\n"); -// BN_print_fp(stdout,&t2); printf(" middle value\n"); -// BN_print_fp(stdout,&t3); printf(" low middle value\n"); +/* BN_print_fp(stdout,&s1); printf(" s1\n"); */ +/* BN_print_fp(stdout,&t2); printf(" middle value\n"); */ +/* BN_print_fp(stdout,&t3); printf(" low middle value\n"); */ BN_sub(&t1,&s1,&t3); if (t1.neg) { -//printf("neg fixup\n"); //BN_print_fp(stdout,&t1); printf(" before\n"); +/*printf("neg fixup\n"); BN_print_fp(stdout,&t1); printf(" before\n"); */ BN_lshift(&t2,BN_value_one(),words*32); BN_add(&t1,&t2,&t1); BN_mask_bits(&t1,words*32); -// BN_print_fp(stdout,&t1); printf(" after\n"); +/* BN_print_fp(stdout,&t1); printf(" after\n"); */ } /* al*bl == high(al*bl)<; * the original copyright message is: * -// (C) Copyright Microsoft Corp. 1993. All rights reserved. -// -// You have a royalty-free right to use, modify, reproduce and -// distribute the Sample Files (and/or any modified version) in -// any way you find useful, provided that you agree that -// Microsoft has no warranty obligations or liability for any -// Sample Application Files which are modified. + * (C) Copyright Microsoft Corp. 1993. All rights reserved. + * + * You have a royalty-free right to use, modify, reproduce and + * distribute the Sample Files (and/or any modified version) in + * any way you find useful, provided that you agree that + * Microsoft has no warranty obligations or liability for any + * Sample Application Files which are modified. */ /* * I have modified the loading of bytes via RAND_seed() mechanism since -- GitLab