[openssl.org #3057] [PATCH] Fix POD errors with pod2man from Perl 5.18.

2013-05-30 Thread Jonathan Liu via RT
---
 doc/apps/cms.pod| 12 ++--
 doc/apps/smime.pod  | 12 ++--
 doc/crypto/OPENSSL_ia32cap.pod  | 10 +-
 doc/ssl/SSL_COMP_add_compression_method.pod |  4 ++--
 doc/ssl/SSL_CTX_add_session.pod |  4 ++--
 doc/ssl/SSL_CTX_load_verify_locations.pod   |  4 ++--
 doc/ssl/SSL_CTX_set_client_CA_list.pod  |  4 ++--
 doc/ssl/SSL_CTX_set_session_id_context.pod  |  4 ++--
 doc/ssl/SSL_CTX_set_ssl_version.pod |  4 ++--
 doc/ssl/SSL_CTX_use_psk_identity_hint.pod   |  2 +-
 doc/ssl/SSL_accept.pod  |  4 ++--
 doc/ssl/SSL_clear.pod   |  4 ++--
 doc/ssl/SSL_connect.pod |  4 ++--
 doc/ssl/SSL_do_handshake.pod|  4 ++--
 doc/ssl/SSL_read.pod|  2 +-
 doc/ssl/SSL_session_reused.pod  |  4 ++--
 doc/ssl/SSL_set_fd.pod  |  4 ++--
 doc/ssl/SSL_set_session.pod |  4 ++--
 doc/ssl/SSL_set_shutdown.pod|  2 +-
 doc/ssl/SSL_shutdown.pod|  4 ++--
 doc/ssl/SSL_write.pod   |  2 +-
 21 files changed, 53 insertions(+), 45 deletions(-)

diff --git a/doc/apps/cms.pod b/doc/apps/cms.pod
index a09588a..881d387 100644
--- a/doc/apps/cms.pod
+++ b/doc/apps/cms.pod
@@ -450,28 +450,28 @@ remains DER.
 
 =over 4
 
-=item 0
+=item Z0
 
 the operation was completely successfully.
 
-=item 1 
+=item Z1 
 
 an error occurred parsing the command options.
 
-=item 2
+=item Z2
 
 one of the input files could not be read.
 
-=item 3
+=item Z3
 
 an error occurred creating the CMS file or when reading the MIME
 message.
 
-=item 4
+=item Z4
 
 an error occurred decrypting or verifying the message.
 
-=item 5
+=item Z5
 
 the message was verified correctly but an error occurred writing out
 the signers certificates.
diff --git a/doc/apps/smime.pod b/doc/apps/smime.pod
index e4e89af..ef8e8cd 100644
--- a/doc/apps/smime.pod
+++ b/doc/apps/smime.pod
@@ -308,28 +308,28 @@ remains DER.
 
 =over 4
 
-=item 0
+=item Z0
 
 the operation was completely successfully.
 
-=item 1 
+=item Z1 
 
 an error occurred parsing the command options.
 
-=item 2
+=item Z2
 
 one of the input files could not be read.
 
-=item 3
+=item Z3
 
 an error occurred creating the PKCS#7 file or when reading the MIME
 message.
 
-=item 4
+=item Z4
 
 an error occurred decrypting or verifying the message.
 
-=item 5
+=item Z5
 
 the message was verified correctly but an error occurred writing out
 the signers certificates.
diff --git a/doc/crypto/OPENSSL_ia32cap.pod b/doc/crypto/OPENSSL_ia32cap.pod
index 4f0a946..242aed2 100644
--- a/doc/crypto/OPENSSL_ia32cap.pod
+++ b/doc/crypto/OPENSSL_ia32cap.pod
@@ -20,6 +20,8 @@ set up automatically upon toolkit initialization, but can be
 manipulated afterwards to modify crypto library behaviour. For the
 moment of this writing following bits are significant:
 
+=over 4
+
 =item bit #4 denoting presence of Time-Stamp Counter.
 
 =item bit #19 denoting availability of CLFLUSH instruction;
@@ -53,6 +55,8 @@ moment of this writing following bits are significant:
 
 =item bit #62 denoting availability of RDRAND instruction;
 
+=back
+
 For example, clearing bit #26 at run-time disables high-performance
 SSE2 code present in the crypto library, while clearing bit #24
 disables SSE2 code operating on 128-bit XMM register bank. You might
@@ -76,6 +80,8 @@ module.
 The vector is further extended with EBX value returned by CPUID with
 EAX=7 and ECX=0 as input. Following bits are significant:
 
+=over 4
+
 =item bit #64+3 denoting availability of BMI1 instructions, e.g. ANDN;
 
 =item bit #64+5 denoting availability of AVX2 instructions;
@@ -85,4 +91,6 @@ EAX=7 and ECX=0 as input. Following bits are significant:
 
 =item bit #64+18 denoting availability of RDSEED instruction;
 
-=itme bit #64+19 denoting availability of ADCX and ADOX instructions;
+=item bit #64+19 denoting availability of ADCX and ADOX instructions;
+
+=back
diff --git a/doc/ssl/SSL_COMP_add_compression_method.pod 
b/doc/ssl/SSL_COMP_add_compression_method.pod
index 42fa66b..f4d191c 100644
--- a/doc/ssl/SSL_COMP_add_compression_method.pod
+++ b/doc/ssl/SSL_COMP_add_compression_method.pod
@@ -53,11 +53,11 @@ SSL_COMP_add_compression_method() may return the following 
values:
 
 =over 4
 
-=item 0
+=item Z0
 
 The operation succeeded.
 
-=item 1
+=item Z1
 
 The operation failed. Check the error queue to find out the reason.
 
diff --git a/doc/ssl/SSL_CTX_add_session.pod b/doc/ssl/SSL_CTX_add_session.pod
index 82676b2..8e0abd3 100644
--- a/doc/ssl/SSL_CTX_add_session.pod
+++ b/doc/ssl/SSL_CTX_add_session.pod
@@ -52,13 +52,13 @@ The following values are returned by all functions:
 
 =over 4
 
-=item 0
+=item Z0
 
  The operation failed. In case of the add operation, it was tried to add
  the same (identical) session twice. In case of the remove operation, the
  session was not found in the 

[PATCH] Fix POD errors with pod2man from Perl 5.18.

2013-05-29 Thread Jonathan Liu
---
 doc/apps/cms.pod| 12 ++--
 doc/apps/smime.pod  | 12 ++--
 doc/crypto/OPENSSL_ia32cap.pod  | 10 +-
 doc/ssl/SSL_COMP_add_compression_method.pod |  4 ++--
 doc/ssl/SSL_CTX_add_session.pod |  4 ++--
 doc/ssl/SSL_CTX_load_verify_locations.pod   |  4 ++--
 doc/ssl/SSL_CTX_set_client_CA_list.pod  |  4 ++--
 doc/ssl/SSL_CTX_set_session_id_context.pod  |  4 ++--
 doc/ssl/SSL_CTX_set_ssl_version.pod |  4 ++--
 doc/ssl/SSL_CTX_use_psk_identity_hint.pod   |  2 +-
 doc/ssl/SSL_accept.pod  |  4 ++--
 doc/ssl/SSL_clear.pod   |  4 ++--
 doc/ssl/SSL_connect.pod |  4 ++--
 doc/ssl/SSL_do_handshake.pod|  4 ++--
 doc/ssl/SSL_read.pod|  2 +-
 doc/ssl/SSL_session_reused.pod  |  4 ++--
 doc/ssl/SSL_set_fd.pod  |  4 ++--
 doc/ssl/SSL_set_session.pod |  4 ++--
 doc/ssl/SSL_set_shutdown.pod|  2 +-
 doc/ssl/SSL_shutdown.pod|  4 ++--
 doc/ssl/SSL_write.pod   |  2 +-
 21 files changed, 53 insertions(+), 45 deletions(-)

diff --git a/doc/apps/cms.pod b/doc/apps/cms.pod
index a09588a..881d387 100644
--- a/doc/apps/cms.pod
+++ b/doc/apps/cms.pod
@@ -450,28 +450,28 @@ remains DER.
 
 =over 4
 
-=item 0
+=item Z0
 
 the operation was completely successfully.
 
-=item 1 
+=item Z1 
 
 an error occurred parsing the command options.
 
-=item 2
+=item Z2
 
 one of the input files could not be read.
 
-=item 3
+=item Z3
 
 an error occurred creating the CMS file or when reading the MIME
 message.
 
-=item 4
+=item Z4
 
 an error occurred decrypting or verifying the message.
 
-=item 5
+=item Z5
 
 the message was verified correctly but an error occurred writing out
 the signers certificates.
diff --git a/doc/apps/smime.pod b/doc/apps/smime.pod
index e4e89af..ef8e8cd 100644
--- a/doc/apps/smime.pod
+++ b/doc/apps/smime.pod
@@ -308,28 +308,28 @@ remains DER.
 
 =over 4
 
-=item 0
+=item Z0
 
 the operation was completely successfully.
 
-=item 1 
+=item Z1 
 
 an error occurred parsing the command options.
 
-=item 2
+=item Z2
 
 one of the input files could not be read.
 
-=item 3
+=item Z3
 
 an error occurred creating the PKCS#7 file or when reading the MIME
 message.
 
-=item 4
+=item Z4
 
 an error occurred decrypting or verifying the message.
 
-=item 5
+=item Z5
 
 the message was verified correctly but an error occurred writing out
 the signers certificates.
diff --git a/doc/crypto/OPENSSL_ia32cap.pod b/doc/crypto/OPENSSL_ia32cap.pod
index 4f0a946..242aed2 100644
--- a/doc/crypto/OPENSSL_ia32cap.pod
+++ b/doc/crypto/OPENSSL_ia32cap.pod
@@ -20,6 +20,8 @@ set up automatically upon toolkit initialization, but can be
 manipulated afterwards to modify crypto library behaviour. For the
 moment of this writing following bits are significant:
 
+=over 4
+
 =item bit #4 denoting presence of Time-Stamp Counter.
 
 =item bit #19 denoting availability of CLFLUSH instruction;
@@ -53,6 +55,8 @@ moment of this writing following bits are significant:
 
 =item bit #62 denoting availability of RDRAND instruction;
 
+=back
+
 For example, clearing bit #26 at run-time disables high-performance
 SSE2 code present in the crypto library, while clearing bit #24
 disables SSE2 code operating on 128-bit XMM register bank. You might
@@ -76,6 +80,8 @@ module.
 The vector is further extended with EBX value returned by CPUID with
 EAX=7 and ECX=0 as input. Following bits are significant:
 
+=over 4
+
 =item bit #64+3 denoting availability of BMI1 instructions, e.g. ANDN;
 
 =item bit #64+5 denoting availability of AVX2 instructions;
@@ -85,4 +91,6 @@ EAX=7 and ECX=0 as input. Following bits are significant:
 
 =item bit #64+18 denoting availability of RDSEED instruction;
 
-=itme bit #64+19 denoting availability of ADCX and ADOX instructions;
+=item bit #64+19 denoting availability of ADCX and ADOX instructions;
+
+=back
diff --git a/doc/ssl/SSL_COMP_add_compression_method.pod 
b/doc/ssl/SSL_COMP_add_compression_method.pod
index 42fa66b..f4d191c 100644
--- a/doc/ssl/SSL_COMP_add_compression_method.pod
+++ b/doc/ssl/SSL_COMP_add_compression_method.pod
@@ -53,11 +53,11 @@ SSL_COMP_add_compression_method() may return the following 
values:
 
 =over 4
 
-=item 0
+=item Z0
 
 The operation succeeded.
 
-=item 1
+=item Z1
 
 The operation failed. Check the error queue to find out the reason.
 
diff --git a/doc/ssl/SSL_CTX_add_session.pod b/doc/ssl/SSL_CTX_add_session.pod
index 82676b2..8e0abd3 100644
--- a/doc/ssl/SSL_CTX_add_session.pod
+++ b/doc/ssl/SSL_CTX_add_session.pod
@@ -52,13 +52,13 @@ The following values are returned by all functions:
 
 =over 4
 
-=item 0
+=item Z0
 
  The operation failed. In case of the add operation, it was tried to add
  the same (identical) session twice. In case of the remove operation, the
  session was not found in the 

Re: Compile error with MinGW-w64

2012-04-20 Thread Jonathan Liu

On 16/04/2012 2:31 AM, Andy Polyakov wrote:

What happens if you add wait; at the very end of
crypto/asm/sha1-x86_64.pl?


It just hangs.


'which perl'? If not /bin/perl, i.e. non-MSYS perl, then I'd suggest to
complement MSYS installation with MSYS perl.


It works with MSYS perl. Thanks.
I was using Strawberry Perl and ActivePerl with MSYS and they didn't 
work. They work fine in Cygwin though and in MSYS with earlier OpenSSL 
versions. Strange.


Regards,
Jonathan
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: Compile error with MinGW-w64

2012-04-15 Thread Jonathan Liu

On 14/04/2012 12:50 AM, Andy Polyakov wrote:

What happens if you add wait; at the very end of
crypto/asm/sha1-x86_64.pl?


It just hangs.

Regards,
Jonathan
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: Compile error with MinGW-w64

2012-04-13 Thread Jonathan Liu

On 30/03/2012 4:09 AM, Andy Polyakov wrote:

I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under
MSYS with the following commands:
./Configure mingw64 shared
make

Error output:
perl asm/sha1-x86_64.pl mingw64  sha1-x86_64.s
gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL
-DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall
-DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c  -o sha1-x86_64.o sha1-x86_64.s
sha1-x86_64.s: Assembler messages:
sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline
inserted
sha1-x86_64.s:2183: Error: number of operands mismatch for `rol'

I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease.

Any ideas?


Look into generated file, at lines in question. Run 'perl
asm/sha1-x86_64.pl mingw64  sha1-x86_64.s' on another system (Windows
or not, doesn't matter) and compare outputs... I can't reproduce the
problem, so it's likely to be problem with your environment. You refer
to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while
problem is likely to be Perl or binutils...

I was able to fix the issue by adding:
  $| = 1;
before
  open STDOUT,$output || die can't open $output: $!
in crypto/perlasm/x86_64-xlate.pl to disable output buffering.

Apparently GCC was reading sha1-x86_64.s before Perl finished writing to it.

Regards,
Jonathan
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: Compile error with MinGW-w64

2012-04-13 Thread Jonathan Liu

On 30/03/2012 4:09 AM, Andy Polyakov wrote:

I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under
MSYS with the following commands:
./Configure mingw64 shared
make

Error output:
perl asm/sha1-x86_64.pl mingw64  sha1-x86_64.s
gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL
-DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall
-DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c  -o sha1-x86_64.o sha1-x86_64.s
sha1-x86_64.s: Assembler messages:
sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline
inserted
sha1-x86_64.s:2183: Error: number of operands mismatch for `rol'

I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease.

Any ideas?


Look into generated file, at lines in question. Run 'perl
asm/sha1-x86_64.pl mingw64  sha1-x86_64.s' on another system (Windows
or not, doesn't matter) and compare outputs... I can't reproduce the
problem, so it's likely to be problem with your environment. You refer
to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while
problem is likely to be Perl or binutils...


It seems sha1-x86_64.s is being read before it is completely written...
Not sure how to handle this. Disable output buffering doesn't solve the 
problem completely - more output is written to file before it is read 
but the file is still read before it is completely written. This leads 
to linker errors.


Regards,
Jonathan
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Compile error with MinGW-w64

2012-03-28 Thread Jonathan Liu

Hello,

I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under 
MSYS with the following commands:

./Configure mingw64 shared
make

Error output:
perl asm/sha1-x86_64.pl mingw64  sha1-x86_64.s
gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include 
-D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN 
-O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m 
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM 
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c  -o sha1-x86_64.o sha1-x86_64.s

sha1-x86_64.s: Assembler messages:
sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline 
inserted

sha1-x86_64.s:2183: Error: number of operands mismatch for `rol'

I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease.

Any ideas?

Regards,
Jonathan
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org