Further comment amendments to preserve formatting prior to source reformat
authorMatt Caswell <matt@openssl.org>
Mon, 5 Jan 2015 00:34:00 +0000 (00:34 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 22 Jan 2015 09:48:59 +0000 (09:48 +0000)
(cherry picked from commit 4a7fa26ffd65bf36beb8d1cb8f29fc0ae203f5c5)

Conflicts:
crypto/x509v3/pcy_tree.c

Conflicts:
apps/apps.c
ssl/ssltest.c

Conflicts:
apps/apps.c
crypto/ec/ec2_oct.c
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c
ssl/s3_cbc.c
ssl/ssl_sess.c
ssl/t1_lib.c

Conflicts:
crypto/bio/b_sock.c
crypto/pem/pem.h
crypto/x509/x509_vfy.c
crypto/x509v3/pcy_tree.c
ssl/s3_both.c

Reviewed-by: Tim Hudson <tjh@openssl.org>
31 files changed:
apps/ca.c
apps/pkcs7.c
apps/req.c
apps/s_cb.c
crypto/bio/bf_null.c
crypto/bio/bss_rtcp.c
crypto/bn/bn_ctx.c
crypto/des/des_old.c
crypto/des/set_key.c
crypto/ec/ec2_mult.c
crypto/ec/ecp_smpl.c
crypto/ecdh/ech_ossl.c
crypto/engine/eng_openssl.c
crypto/md5/md5_locl.h
crypto/objects/objects.h
crypto/ocsp/ocsp_ext.c
crypto/pem/pem.h
crypto/rand/rand_win.c
crypto/rc2/rc2_ecb.c
crypto/stack/stack.c
crypto/threads/mttest.c
crypto/threads/th-lock.c
crypto/ui/ui_openssl.c
crypto/x509v3/pcy_tree.c
crypto/x509v3/v3_lib.c
crypto/x509v3/v3_pku.c
engines/e_sureware.c
ssl/kssl.c
ssl/ssl_lib.c
ssl/ssltest.c
ssl/t1_enc.c

index 37d1755e5313d72ef24aa564f144716fb4ab567b..3f38222070bdad34bd2ce3ddc7988125c409248a 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -627,7 +627,7 @@ bad:
                        oid_bio=BIO_new_file(p,"r");
                        if (oid_bio == NULL) 
                                {
-                               /*
+                               /*-
                                BIO_printf(bio_err,"problems opening %s for extra oid's\n",p);
                                ERR_print_errors(bio_err);
                                */
index bdbb10229eecc12be4d66de4d5e2418f1826b444..1ab86e50ee2f3572ea81ae3bd7c3ecde21f6fdac 100644 (file)
@@ -71,7 +71,8 @@
 #undef PROG
 #define PROG   pkcs7_main
 
-/* -inform arg - input format - default PEM (DER or PEM)
+/*-
+ * -inform arg - input format - default PEM (DER or PEM)
  * -outform arg - output format - default PEM
  * -in arg     - input file - default stdin
  * -out arg    - output file - default stdout
index a6d180e973cf1dec7ea8f256385e2ee85a10e4ef..c51dac0caab6bd8d01a19e2c8dab067e04e4af75 100644 (file)
@@ -605,7 +605,7 @@ bad:
                        oid_bio=BIO_new_file(p,"r");
                        if (oid_bio == NULL) 
                                {
-                               /*
+                               /*-
                                BIO_printf(bio_err,"problems opening %s for extra oid's\n",p);
                                ERR_print_errors(bio_err);
                                */
index df922f3af5e92dddb2d385c6ebbff24d3eef6995..456aef18f9792004de9ab83b434c2d1572b90cd6 100644 (file)
@@ -204,7 +204,7 @@ int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file)
                        return(0);
                        }
 
-               /*
+               /*-
                In theory this is no longer needed 
                ssl=SSL_new(ctx);
                x509=SSL_get_certificate(ssl);
index c1bf39a904f405e8d8e5341224fa7d91460f1a77..e179e6d0f5f155a0492514859d1129c7d994e251 100644 (file)
@@ -102,9 +102,11 @@ static int nullf_new(BIO *bi)
 static int nullf_free(BIO *a)
        {
        if (a == NULL) return(0);
-/*     a->ptr=NULL;
+       /*-
+       a->ptr=NULL;
        a->init=0;
-       a->flags=0;*/
+       a->flags=0;
+       */
        return(1);
        }
        
index 7dae4855640645615f03c533250a2bb9b6f96b6b..dd6038f3bd2599eb073605b5fb629ef628c2fcb5 100644 (file)
@@ -56,7 +56,8 @@
  * [including the GNU Public Licence.]
  */
 
-/* Written by David L. Jones <jonesd@kcgl1.eng.ohio-state.edu>
+/*-
+ * Written by David L. Jones <jonesd@kcgl1.eng.ohio-state.edu>
  * Date:   22-JUL-1996
  * Revised: 25-SEP-1997                Update for 0.8.1, BIO_CTRL_SET -> BIO_C_SET_FD
  */
index b3452f1a91e31081e18667e25c49790b5b5a876a..5b5aebe43b5016cf874c594db84076fae4a39db9 100644 (file)
@@ -66,7 +66,8 @@
 #include "cryptlib.h"
 #include "bn_lcl.h"
 
-/* TODO list
+/*-
+ * TODO list
  *
  * 1. Check a bunch of "(words+1)" type hacks in various bignum functions and
  * check they can be safely removed.
index 7c33ed7a93341cdaf261eb6ac70d163fa7fc37b8..3d42014b5b49f1e69ae8b30a96913af434ba09f8 100644 (file)
@@ -1,6 +1,7 @@
 /* crypto/des/des_old.c -*- mode:C; c-file-style: "eay" -*- */
 
-/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+/*-
+ * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  *
  * The function names in here are deprecated and are only present to
  * provide an interface compatible with libdes.  OpenSSL now provides
index c94dd975fa5285ac92569b49c235a9b87b1e59e7..50e17afe3824e01a4006f49bed8de402b69a5084 100644 (file)
@@ -155,7 +155,8 @@ int DES_is_weak_key(const_DES_cblock *key)
        return(0);
        }
 
-/* NOW DEFINED IN des_local.h
+/*-
+ * NOW DEFINED IN des_local.h
  * See ecb_encrypt.c for a pseudo description of these macros. 
  * #define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\
  *     (b)^=(t),\
@@ -325,7 +326,8 @@ int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule)
                }
        }
 
-/* return 0 if key parity is odd (correct),
+/*-
+ * return 0 if key parity is odd (correct),
  * return -1 if key parity error,
  * return -2 if illegal weak key.
  */
index b54dc50c309af85ee13cf757e8c6efa97af5dbc0..30f71205a49d4fb0b7e493ad2be9cd8d209d260c 100644 (file)
@@ -72,7 +72,8 @@
 #include "ec_lcl.h"
 
 
-/* Compute the x-coordinate x/z for the point 2*(x/z) in Montgomery projective 
+/*-
+ * Compute the x-coordinate x/z for the point 2*(x/z) in Montgomery projective 
  * coordinates.
  * Uses algorithm Mdouble in appendix of 
  *     Lopez, J. and Dahab, R.  "Fast multiplication on elliptic curves over 
@@ -104,7 +105,8 @@ static int gf2m_Mdouble(const EC_GROUP *group, BIGNUM *x, BIGNUM *z, BN_CTX *ctx
        return ret;
        }
 
-/* Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery 
+/*-
+ * Compute the x-coordinate x1/z1 for the point (x1/z1)+(x2/x2) in Montgomery 
  * projective coordinates.
  * Uses algorithm Madd in appendix of 
  *     Lopex, J. and Dahab, R.  "Fast multiplication on elliptic curves over 
index e24c7a49d20e83a75684580bcf2f8b8a519853c9..8d0075742cc1f6d31172e0caf1a63d959b3dc1d0 100644 (file)
@@ -113,13 +113,14 @@ const EC_METHOD *EC_GFp_simple_method(void)
        }
 
 
-/* Most method functions in this file are designed to work with
+/*
+ * Most method functions in this file are designed to work with
  * non-trivial representations of field elements if necessary
  * (see ecp_mont.c): while standard modular addition and subtraction
  * are used, the field_mul and field_sqr methods will be used for
  * multiplication, and field_encode and field_decode (if defined)
  * will be used for converting between representations.
-
+ *
  * Functions ec_GFp_simple_points_make_affine() and
  * ec_GFp_simple_point_get_affine_coordinates() specifically assume
  * that if a non-trivial representation is used, it is a Montgomery
index 2a40ff12dfa8c29c4624e49bb668f2c5d0eebbbf..c21368ca3d04a719816da2abf4b304662cab64ea 100644 (file)
@@ -100,7 +100,8 @@ const ECDH_METHOD *ECDH_OpenSSL(void)
        }
 
 
-/* This implementation is based on the following primitives in the IEEE 1363 standard:
+/*-
+ * This implementation is based on the following primitives in the IEEE 1363 standard:
  *  - ECKAS-DH1
  *  - ECSVDP-DH
  * Finally an optional KDF is applied.
index 7c139ae2efcb44754cb273cf2176b1763f71c5c8..49cab0e38abe7f0a6f508ea6289f1a7587a4c752 100644 (file)
@@ -207,7 +207,8 @@ IMPLEMENT_DYNAMIC_BIND_FN(bind_fn)
 #endif /* ENGINE_DYNAMIC_SUPPORT */
 
 #ifdef TEST_ENG_OPENSSL_RC4
-/* This section of code compiles an "alternative implementation" of two modes of
+/*-
+ * This section of code compiles an "alternative implementation" of two modes of
  * RC4 into this ENGINE. The result is that EVP_CIPHER operation for "rc4"
  * should under normal circumstances go via this support rather than the default
  * EVP support. There are other symbols to tweak the testing;
index 84e81b960de481410fe5e6c862b6c1103d69c004..bb42994fff2fd0dcaaaa66a45e8911354cd75dbf 100644 (file)
@@ -93,7 +93,7 @@ void md5_block_data_order (MD5_CTX *c, const void *p,size_t num);
 
 #include "md32_common.h"
 
-/*
+/*-
 #define        F(x,y,z)        (((x) & (y))  |  ((~(x)) & (z)))
 #define        G(x,y,z)        (((x) & (z))  |  ((y) & (~(z))))
 */
index 6659acef1842c89b41bef806b22809ff5659840b..f965a2b3153e89194f4e0535777d1c9f3efcd283 100644 (file)
 #define NID_pbeWithMD5AndCast5_CBC     112
 #define OBJ_pbeWithMD5AndCast5_CBC     1L,2L,840L,113533L,7L,66L,12L
 
-/* This is one sun will soon be using :-(
+/*-
+ * This is one sun will soon be using :-(
  * id-dsa-with-sha1 ID  ::= {
  *   iso(1) member-body(2) us(840) x9-57 (10040) x9cm(4) 3 }
  */
index 815cc29d58fe2fad641022c1eaf84da6342bec62..865f42aecc149611e3f28855392bab5724f45729 100644 (file)
@@ -360,7 +360,8 @@ int OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len)
        return ocsp_add1_nonce(&resp->tbsResponseData->responseExtensions, val, len);
        }
 
-/* Check nonce validity in a request and response.
+/*-
+ * Check nonce validity in a request and response.
  * Return value reflects result:
  *  1: nonces present and equal.
  *  2: nonces both absent.
index 6c193f1cbfa461e5dafe300dd1685e592b3f2db6..f1e9c65d36356b889b6705f463e7f6f5a6a4c424 100644 (file)
@@ -174,7 +174,8 @@ typedef struct pem_ctx_st
 
        struct  {
                int cipher;
-       /* unused, and wrong size
+       /*-
+          unused, and wrong size
           unsigned char iv[8]; */
                } DEK_info;
                
@@ -197,7 +198,8 @@ typedef struct pem_ctx_st
        EVP_CIPHER *dec;        /* date encryption cipher */
        int key_len;            /* key length */
        unsigned char *key;     /* key */
-       /* unused, and wrong size
+       /*-
+           unused, and wrong size
           unsigned char iv[8]; */
 
        
index c37c416b8891951b147b080658d76290b6cd5f57..30778d183c83f77b05c4e8dd1c0a373986137c9b 100644 (file)
@@ -375,7 +375,8 @@ int RAND_poll(void)
                FreeLibrary(user);
                }
 
-       /* Toolhelp32 snapshot: enumerate processes, threads, modules and heap
+       /*-
+        * Toolhelp32 snapshot: enumerate processes, threads, modules and heap
         * http://msdn.microsoft.com/library/psdk/winbase/toolhelp_5pfd.htm
         * (Win 9x and 2000 only, not available on NT)
         *
index fff86c7af897d1269c25b999e9d5c3a61b645d0f..4214233c6553f29c892f493b9e8237a2f3d2c0a5 100644 (file)
@@ -62,7 +62,8 @@
 
 const char RC2_version[]="RC2" OPENSSL_VERSION_PTEXT;
 
-/* RC2 as implemented frm a posting from
+/*-
+ * RC2 as implemented frm a posting from
  * Newsgroups: sci.crypt
  * Sender: pgut01@cs.auckland.ac.nz (Peter Gutmann)
  * Subject: Specification for Ron Rivests Cipher No.2
index 378bd7c7968c432dd609f207d0cb646b293dca1d..fb2cc95ad4b52a7993c3deff269d1277af82dbe8 100644 (file)
@@ -56,7 +56,8 @@
  * [including the GNU Public Licence.]
  */
 
-/* Code for stacks
+/*-
+ * Code for stacks
  * Author - Eric Young v 1.0
  * 1.2 eay 12-Mar-97 - Modified sk_find so that it _DOES_ return the
  *                     lowest index for the searched item.
index f6f3df4b6aa89c79cabeb9eaa80c51e6f263a64f..faf445f69c73eb479f845fd299a9d2a5c7079687 100644 (file)
@@ -863,7 +863,7 @@ void solaris_locking_callback(int mode, int type, char *file, int line)
                (type&CRYPTO_READ)?"r":"w",file,line);
 #endif
 
-       /*
+       /*-
        if (CRYPTO_LOCK_SSL_CERT == type)
        fprintf(stderr,"(t,m,f,l) %ld %d %s %d\n",
                CRYPTO_thread_id(),
@@ -871,7 +871,8 @@ void solaris_locking_callback(int mode, int type, char *file, int line)
        */
        if (mode & CRYPTO_LOCK)
                {
-       /*      if (mode & CRYPTO_READ)
+       /*-
+               if (mode & CRYPTO_READ)
                        rw_rdlock(&(lock_cs[type]));
                else
                        rw_wrlock(&(lock_cs[type])); */
@@ -1067,7 +1068,7 @@ void pthreads_locking_callback(int mode, int type, char *file,
                (mode&CRYPTO_LOCK)?"l":"u",
                (type&CRYPTO_READ)?"r":"w",file,line);
 #endif
-/*
+/*-
        if (CRYPTO_LOCK_SSL_CERT == type)
                fprintf(stderr,"(t,m,f,l) %ld %d %s %d\n",
                CRYPTO_thread_id(),
index 14aae5f9128751cd01707aa3f4ee29eb8140d14e..8daa98c1e533dbeaa1cc66d52c56590b514ab219 100644 (file)
@@ -97,7 +97,8 @@ static unsigned long irix_thread_id(void );
 static unsigned long solaris_thread_id(void );
 static unsigned long pthreads_thread_id(void );
 
-/* usage:
+/*-
+ * usage:
  * CRYPTO_thread_setup();
  * application code
  * CRYPTO_thread_cleanup();
index 06270f09cd425b910790bdebbd914772935ed896..23ca813857269c6c3580884b534e3df261b51cca 100644 (file)
@@ -56,7 +56,8 @@
  *
  */
 
-/* The lowest level part of this file was previously in crypto/des/read_pwd.c,
+/*-
+ * The lowest level part of this file was previously in crypto/des/read_pwd.c,
  * Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
index 85966fe451acf15fba8a8ff8506b6dc5bfc31e77..b1d162e736e20c0512aaea5e522c9647ee006b2a 100644 (file)
@@ -62,7 +62,8 @@
 
 #include "pcy_int.h"
 
-/* Initialize policy tree. Return values:
+/*-
+ * Initialize policy tree. Return values:
  *  0 Some internal error occured.
  * -1 Inconsistent or invalid extensions in certificates.
  *  1 Tree initialized OK.
index df3a48f43eff20cee13a646ba46487df506f3c6b..ef3b3d7cc9202a3d4e4a99b116bfaa1003d81697 100644 (file)
@@ -170,7 +170,8 @@ void *X509V3_EXT_d2i(X509_EXTENSION *ext)
        return method->d2i(NULL, &p, ext->value->length);
 }
 
-/* Get critical flag and decoded version of extension from a NID.
+/*-
+ * Get critical flag and decoded version of extension from a NID.
  * The "idx" variable returns the last found extension and can
  * be used to retrieve multiple extensions of the same NID.
  * However multiple extensions with the same NID is usually
index 076f3ff48e284521c14e751f575a86ac496844fd..f531df94f6ac47a98cf00ba255671038af317a50 100644 (file)
@@ -97,7 +97,7 @@ static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method,
        return 1;
 }
 
-/*
+/*-
 static PKEY_USAGE_PERIOD *v2i_PKEY_USAGE_PERIOD(method, ctx, values)
 X509V3_EXT_METHOD *method;
 X509V3_CTX *ctx;
index 58fa9a98ee23b7b18dfdd03ec980fb339dcaaac2..3594ccda8b64cd8b8d2bd0062a27263df3a19ba9 100644 (file)
@@ -1,4 +1,5 @@
-/* Written by Corinne Dive-Reclus(cdive@baltimore.com)
+/*-
+*  Written by Corinne Dive-Reclus(cdive@baltimore.com)
 * 
 *
 * Redistribution and use in source and binary forms, with or without
index c550cec9fc3e3f863d6ada1504fbbb3c4b75a2bd..cdd0ae09bb1f61e39ed15f418f549e9d210eb019 100644 (file)
@@ -906,7 +906,8 @@ size_t  *populate_cksumlens(void)
        return cklens;
        }
 
-/*     Return pointer to start of real authenticator within authenticator, or
+/*-
+ *     Return pointer to start of real authenticator within authenticator, or
  *     return NULL on error.
  *     Decrypted authenticator looks like this:
  *             [0 or 8 byte confounder] [4-24 byte checksum] [real authent'r]
index 542ab5a55849932c058f87b80d7c038de8d230c9..409b9e7a2b57059a76ffabf3f68bbc51513378d9 100644 (file)
@@ -1533,7 +1533,8 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)
        ret->quiet_shutdown=0;
 
 /*     ret->cipher=NULL;*/
-/*     ret->s2->challenge=NULL;
+/*-
+       ret->s2->challenge=NULL;
        ret->master_key=NULL;
        ret->key_arg=NULL;
        ret->s2->conn_id=NULL; */
index 995d185052ffd234d0d2a71c68eeed9b7ce85f18..f5e752b7d88518ed1824fe24780146e7191f4051 100644 (file)
@@ -1411,7 +1411,8 @@ int doit(SSL *s_ssl, SSL *c_ssl, long count)
                        if (SSL_in_init(s_ssl))
                                printf("server waiting in SSL_accept - %s\n",
                                        SSL_state_string_long(s_ssl));
-/*                     else if (s_write)
+/*-
+                       else if (s_write)
                                printf("server:SSL_write()\n");
                        else
                                printf("server:SSL_read()\n"); */
@@ -1422,7 +1423,8 @@ int doit(SSL *s_ssl, SSL *c_ssl, long count)
                        if (SSL_in_init(c_ssl))
                                printf("client waiting in SSL_connect - %s\n",
                                        SSL_state_string_long(c_ssl));
-/*                     else if (c_write)
+/*-
+                       else if (c_write)
                                printf("client:SSL_write()\n");
                        else
                                printf("client:SSL_read()\n"); */
index 4b9383adfaf0911b6dd7629d09c9f09ce5e73c99..b884957d49302dbd143019dc6a1ddb127bb194f2 100644 (file)
@@ -528,7 +528,8 @@ err:
        return(0);
        }
 
-/* tls1_enc encrypts/decrypts the record in |s->wrec| / |s->rrec|, respectively.
+/*-
+ * tls1_enc encrypts/decrypts the record in |s->wrec| / |s->rrec|, respectively.
  *
  * Returns:
  *   0: (in non-constant time) if the record is publically invalid (i.e. too