summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorTim Hudson <tjh@openssl.org>2014-12-28 12:48:40 +1000
committerMatt Caswell <matt@openssl.org>2014-12-30 22:10:26 +0000
commit1d97c8435171a7af575f73c526d79e1ef0ee5960 (patch)
tree99405d276f1713c41130162ac64f6b01c95a0751 /crypto
parentaa8a9266f91ce05068c5bf7eab44263c99d366f3 (diff)
mark all block comments that need format preserving so that
indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aes/aes_core.c2
-rw-r--r--crypto/aes/aes_x86core.c4
-rw-r--r--crypto/asn1/a_sign.c3
-rw-r--r--crypto/asn1/a_time.c3
-rw-r--r--crypto/asn1/a_utf8.c3
-rw-r--r--crypto/asn1/asn1.h3
-rw-r--r--crypto/asn1/asn1t.h6
-rw-r--r--crypto/asn1/x_attrib.c3
-rw-r--r--crypto/asn1/x_req.c3
-rw-r--r--crypto/bf/blowfish.h2
-rw-r--r--crypto/bio/b_print.c2
-rw-r--r--crypto/bio/bio.h9
-rw-r--r--crypto/bio/bss_acpt.c2
-rw-r--r--crypto/bio/bss_bio.c6
-rw-r--r--crypto/bn/asm/x86_64-gcc.c4
-rw-r--r--crypto/bn/bn_add.c6
-rw-r--r--crypto/bn/bn_div.c3
-rw-r--r--crypto/bn/bn_exp.c3
-rw-r--r--crypto/bn/bn_gcd.c31
-rw-r--r--crypto/bn/bn_lcl.h5
-rw-r--r--crypto/bn/bn_lib.c3
-rw-r--r--crypto/bn/bn_mul.c33
-rw-r--r--crypto/bn/bn_prime.c6
-rw-r--r--crypto/bn/bn_recp.c3
-rw-r--r--crypto/bn/bn_sqr.c9
-rw-r--r--crypto/bn/bn_sqrt.c12
-rw-r--r--crypto/conf/conf_def.c3
-rw-r--r--crypto/constant_time_locl.h6
-rw-r--r--crypto/constant_time_test.c2
-rw-r--r--crypto/crypto.h3
-rw-r--r--crypto/des/des_locl.h3
-rw-r--r--crypto/des/des_old.h3
-rw-r--r--crypto/des/destest.c2
-rw-r--r--crypto/des/enc_read.c2
-rw-r--r--crypto/des/enc_writ.c2
-rw-r--r--crypto/des/ncbc_enc.c2
-rw-r--r--crypto/des/rpc_des.h2
-rw-r--r--crypto/des/set_key.c5
-rw-r--r--crypto/dh/dh_check.c3
-rw-r--r--crypto/dh/dh_gen.c3
-rw-r--r--crypto/dsa/dsa_ameth.c3
-rw-r--r--crypto/dsa/dsa_asn1.c3
-rw-r--r--crypto/dsa/dsa_ossl.c3
-rw-r--r--crypto/dso/dso_vms.c3
-rw-r--r--crypto/ec/ec.h2
-rw-r--r--crypto/ec/ec2_mult.c9
-rw-r--r--crypto/ec/ec2_smpl.c6
-rw-r--r--crypto/ec/ec_lcl.h3
-rw-r--r--crypto/ec/ec_mult.c6
-rw-r--r--crypto/ec/ecp_nistp224.c33
-rw-r--r--crypto/ec/ecp_nistp256.c75
-rw-r--r--crypto/ec/ecp_nistp521.c78
-rw-r--r--crypto/ec/ecp_nistputil.c2
-rw-r--r--crypto/ec/ecp_smpl.c12
-rw-r--r--crypto/ecdsa/ecs_vrf.c6
-rw-r--r--crypto/engine/eng_all.c2
-rw-r--r--crypto/engine/engine.h8
-rw-r--r--crypto/evp/bio_enc.c2
-rw-r--r--crypto/evp/bio_md.c2
-rw-r--r--crypto/evp/bio_ok.c2
-rw-r--r--crypto/evp/encode.c9
-rw-r--r--crypto/evp/evp.h2
-rw-r--r--crypto/evp/evp_locl.h2
-rw-r--r--crypto/evp/p_seal.c2
-rw-r--r--crypto/idea/ideatest.c2
-rw-r--r--crypto/jpake/jpake.c8
-rw-r--r--crypto/jpake/jpaketest.c4
-rw-r--r--crypto/krb5/krb5_asn.h134
-rw-r--r--crypto/lhash/lhash.c3
-rw-r--r--crypto/md32_common.h2
-rw-r--r--crypto/md4/md4.h2
-rw-r--r--crypto/modes/gcm128.c2
-rw-r--r--crypto/o_time.c3
-rw-r--r--crypto/objects/objects.h5
-rw-r--r--crypto/ocsp/ocsp.h38
-rw-r--r--crypto/opensslv.h6
-rw-r--r--crypto/pkcs7/pkcs7.h2
-rw-r--r--crypto/rand/rand_egd.c2
-rw-r--r--crypto/rc2/rc2test.c2
-rw-r--r--crypto/rc4/rc4_enc.c4
-rw-r--r--crypto/rsa/rsa_pss.c4
-rw-r--r--crypto/sha/sha.h2
-rw-r--r--crypto/sha/sha512.c2
-rw-r--r--crypto/stack/safestack.h5
-rw-r--r--crypto/ts/ts.h20
-rw-r--r--crypto/ts/ts_rsp_verify.c2
-rw-r--r--crypto/ui/ui.h6
-rw-r--r--crypto/whrlpool/wp_dgst.c2
-rw-r--r--crypto/x509/x509.h2
-rw-r--r--crypto/x509/x509_lu.c3
-rw-r--r--crypto/x509/x509_vfy.h2
-rw-r--r--crypto/x509/x509_vpm.c3
-rw-r--r--crypto/x509/x509name.c6
-rw-r--r--crypto/x509v3/pcy_tree.c3
-rw-r--r--crypto/x509v3/v3_ncons.c4
-rw-r--r--crypto/x509v3/v3_purp.c6
-rw-r--r--crypto/x509v3/v3_scts.c6
-rw-r--r--crypto/x509v3/v3nametest.c2
98 files changed, 471 insertions, 313 deletions
diff --git a/crypto/aes/aes_core.c b/crypto/aes/aes_core.c
index ba90952829..de44a5887d 100644
--- a/crypto/aes/aes_core.c
+++ b/crypto/aes/aes_core.c
@@ -41,7 +41,7 @@
#include "aes_locl.h"
#ifndef AES_ASM
-/*
+/*-
Te0[x] = S [x].[02, 01, 01, 03];
Te1[x] = S [x].[03, 02, 01, 01];
Te2[x] = S [x].[01, 03, 02, 01];
diff --git a/crypto/aes/aes_x86core.c b/crypto/aes/aes_x86core.c
index e438580b22..41d3251f0a 100644
--- a/crypto/aes/aes_x86core.c
+++ b/crypto/aes/aes_x86core.c
@@ -105,7 +105,7 @@ typedef unsigned long long u64;
})
# endif
#endif
-/*
+/*-
Te [x] = S [x].[02, 01, 01, 03, 02, 01, 01, 03];
Te0[x] = S [x].[02, 01, 01, 03];
Te1[x] = S [x].[03, 02, 01, 01];
@@ -116,7 +116,7 @@ Te3[x] = S [x].[01, 01, 03, 02];
#define Te1 (u32)((u64*)((u8*)Te+3))
#define Te2 (u32)((u64*)((u8*)Te+2))
#define Te3 (u32)((u64*)((u8*)Te+1))
-/*
+/*-
Td [x] = Si[x].[0e, 09, 0d, 0b, 0e, 09, 0d, 0b];
Td0[x] = Si[x].[0e, 09, 0d, 0b];
Td1[x] = Si[x].[0b, 0e, 09, 0d];
diff --git a/crypto/asn1/a_sign.c b/crypto/asn1/a_sign.c
index 7b4a193d6b..2f7c79025c 100644
--- a/crypto/asn1/a_sign.c
+++ b/crypto/asn1/a_sign.c
@@ -254,7 +254,8 @@ int ASN1_item_sign_ctx(const ASN1_ITEM *it,
signature);
if (rv == 1)
outl = signature->length;
- /* Return value meanings:
+ /*-
+ * Return value meanings:
* <=0: error.
* 1: method does everything.
* 2: carry on as normal.
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 7036868fcc..311e0668f5 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -54,7 +54,8 @@
*/
-/* This is an implementation of the ASN1 Time structure which is:
+/*-
+ * This is an implementation of the ASN1 Time structure which is:
* Time ::= CHOICE {
* utcTime UTCTime,
* generalTime GeneralizedTime }
diff --git a/crypto/asn1/a_utf8.c b/crypto/asn1/a_utf8.c
index 508e11e527..2105306fea 100644
--- a/crypto/asn1/a_utf8.c
+++ b/crypto/asn1/a_utf8.c
@@ -63,7 +63,8 @@
/* UTF8 utilities */
-/* This parses a UTF8 string one character at a time. It is passed a pointer
+/*-
+ * This parses a UTF8 string one character at a time. It is passed a pointer
* to the string and the length of the string. It sets 'value' to the value of
* the current character. It returns the number of characters read or a
* negative error code:
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h
index 68be533d40..fc87e0ca7d 100644
--- a/crypto/asn1/asn1.h
+++ b/crypto/asn1/asn1.h
@@ -367,7 +367,8 @@ typedef struct ASN1_VALUE_st ASN1_VALUE;
TYPEDEF_D2I2D_OF(void);
-/* The following macros and typedefs allow an ASN1_ITEM
+/*-
+ * The following macros and typedefs allow an ASN1_ITEM
* to be embedded in a structure and referenced. Since
* the ASN1_ITEM pointers need to be globally accessible
* (possibly from shared libraries) they may exist in
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h
index d230e4bf70..47502a6a5e 100644
--- a/crypto/asn1/asn1t.h
+++ b/crypto/asn1/asn1t.h
@@ -129,7 +129,8 @@ extern "C" {
/* This is a ASN1 type which just embeds a template */
-/* This pair helps declare a SEQUENCE. We can do:
+/*-
+ * This pair helps declare a SEQUENCE. We can do:
*
* ASN1_SEQUENCE(stname) = {
* ... SEQUENCE components ...
@@ -231,7 +232,8 @@ extern "C" {
ASN1_ITEM_end(tname)
-/* This pair helps declare a CHOICE type. We can do:
+/*-
+ * This pair helps declare a CHOICE type. We can do:
*
* ASN1_CHOICE(chname) = {
* ... CHOICE options ...
diff --git a/crypto/asn1/x_attrib.c b/crypto/asn1/x_attrib.c
index 1e3713f18f..04ae991115 100644
--- a/crypto/asn1/x_attrib.c
+++ b/crypto/asn1/x_attrib.c
@@ -62,7 +62,8 @@
#include <openssl/asn1t.h>
#include <openssl/x509.h>
-/* X509_ATTRIBUTE: this has the following form:
+/*-
+ * X509_ATTRIBUTE: this has the following form:
*
* typedef struct x509_attributes_st
* {
diff --git a/crypto/asn1/x_req.c b/crypto/asn1/x_req.c
index d57555827c..529899ac3b 100644
--- a/crypto/asn1/x_req.c
+++ b/crypto/asn1/x_req.c
@@ -61,7 +61,8 @@
#include <openssl/asn1t.h>
#include <openssl/x509.h>
-/* X509_REQ_INFO is handled in an unusual way to get round
+/*-
+ * X509_REQ_INFO is handled in an unusual way to get round
* invalid encodings. Some broken certificate requests don't
* encode the attributes field if it is empty. This is in
* violation of PKCS#10 but we need to tolerate it. We do
diff --git a/crypto/bf/blowfish.h b/crypto/bf/blowfish.h
index b97e76f9a3..50787eda09 100644
--- a/crypto/bf/blowfish.h
+++ b/crypto/bf/blowfish.h
@@ -72,7 +72,7 @@ extern "C" {
#define BF_ENCRYPT 1
#define BF_DECRYPT 0
-/*
+/*-
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* ! BF_LONG has to be at least 32 bits wide. If it's wider, then !
* ! BF_LONG_LOG2 has to be defined along. !
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index 143a7cfefa..bde51d8aca 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -94,7 +94,7 @@
* on all source code distributions.
*/
-/*
+/*-
* This code contains numerious changes and enhancements which were
* made by lots of contributors over the last years to Patrick Powell's
* original code:
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h
index 122ec04e0b..3ea44ab263 100644
--- a/crypto/bio/bio.h
+++ b/crypto/bio/bio.h
@@ -218,7 +218,8 @@ extern "C" {
#define BIO_GHBN_CTRL_FLUSH 5
/* Mostly used in the SSL BIO */
-/* Not used anymore
+/*-
+ * Not used anymore
* #define BIO_FLAGS_PROTOCOL_DELAYED_READ 0x10
* #define BIO_FLAGS_PROTOCOL_DELAYED_WRITE 0x20
* #define BIO_FLAGS_PROTOCOL_STARTUP 0x40
@@ -336,7 +337,8 @@ DECLARE_STACK_OF(BIO)
typedef struct bio_f_buffer_ctx_struct
{
- /* Buffers are setup like this:
+ /*-
+ * Buffers are setup like this:
*
* <---------------------- size ----------------------->
* +---------------------------------------------------+
@@ -715,7 +717,8 @@ int BIO_hex_string(BIO *out, int indent, int width, unsigned char *data,
int datalen);
struct hostent *BIO_gethostbyname(const char *name);
-/* We might want a thread-safe interface too:
+/*-
+ * We might want a thread-safe interface too:
* struct hostent *BIO_gethostbyname_r(const char *name,
* struct hostent *result, void *buffer, size_t buflen);
* or something similar (caller allocates a struct hostent,
diff --git a/crypto/bio/bss_acpt.c b/crypto/bio/bss_acpt.c
index 4110ff1a45..0237c0fbc6 100644
--- a/crypto/bio/bss_acpt.c
+++ b/crypto/bio/bss_acpt.c
@@ -436,7 +436,7 @@ static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
ret=(long)data->bind_mode;
break;
case BIO_CTRL_DUP:
-/* dbio=(BIO *)ptr;
+/*- dbio=(BIO *)ptr;
if (data->param_port) EAY EAY
BIO_set_port(dbio,data->param_port);
if (data->param_hostname)
diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c
index 52ef0ebcb3..6d86587ee3 100644
--- a/crypto/bio/bss_bio.c
+++ b/crypto/bio/bss_bio.c
@@ -269,7 +269,8 @@ static int bio_read(BIO *bio, char *buf, int size_)
return size;
}
-/* non-copying interface: provide pointer to available data in buffer
+/*-
+ * non-copying interface: provide pointer to available data in buffer
* bio_nread0: return number of available bytes
* bio_nread: also advance index
* (example usage: bio_nread0(), read from buffer, bio_nread()
@@ -422,7 +423,8 @@ static int bio_write(BIO *bio, const char *buf, int num_)
return num;
}
-/* non-copying interface: provide pointer to region to write to
+/*-
+ * non-copying interface: provide pointer to region to write to
* bio_nwrite0: check how much space is available
* bio_nwrite: also increase length
* (example usage: bio_nwrite0(), write to buffer, bio_nwrite()
diff --git a/crypto/bn/asm/x86_64-gcc.c b/crypto/bn/asm/x86_64-gcc.c
index 7d97c0bedc..c6d12f4f81 100644
--- a/crypto/bn/asm/x86_64-gcc.c
+++ b/crypto/bn/asm/x86_64-gcc.c
@@ -2,7 +2,7 @@
#if !(defined(__GNUC__) && __GNUC__>=2)
# include "../bn_asm.c" /* kind of dirty hack for Su