[cups.general] Someone Know The Error 127

Michael R Sweet msweet at apple.com
Wed Oct 8 11:27:42 PDT 2008


ß10f@ ††K wrote:
> # ./configure
> ....
> checking openssl/ssl.h usability... yes
> checking openssl/ssl.h presence... yes
> checking for openssl/ssl.h... yes
> checking for SSL_new in -lssl... yes
>     Using SSLLIBS="-lssl -lcrypto"
>     Using SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
> ....
> # make
> .....
> client.c: In function 'encrypt_client':
> client.c:3096: error: 'SSL_OP_DONTS_INSERT_EMPTY_FRAGMENTS' undeclared 
> (first use in this function)

Sigh...  The following patch fixes this:

Index: client.c
===================================================================
--- client.c	(revision 8027)
+++ client.c	(working copy)
@@ -3093,10 +3093,9 @@

    SSL_CTX_set_options(context, SSL_OP_NO_SSLv2); /* Only use SSLv3 or 
TLS */
    if (SSLOptions & CUPSD_SSL_NOEMPTY)
-    SSL_CTX_set_options(context, SSL_OP_DONTS_INSERT_EMPTY_FRAGMENTS);
+    SSL_CTX_set_options(context, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);
    SSL_CTX_use_PrivateKey_file(context, ServerKey, SSL_FILETYPE_PEM);
-  SSL_CTX_use_certificate_chain_file(context, ServerCertificate,
-                                     SSL_FILETYPE_PEM);
+  SSL_CTX_use_certificate_chain_file(context, ServerCertificate);

    bio = BIO_new(_httpBIOMethods());
    BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)HTTP(con));



-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list