Upstream patch from 2009-12-18 to fix compilation with OpenSSL 1.0.0
--- dcmtls/libsrc/tlslayer.cc.orig	2009-01-30 07:53:53.000000000 -0600
+++ dcmtls/libsrc/tlslayer.cc	2009-12-18 07:15:45.000000000 -0600
@@ -189,18 +197,12 @@
    seedPRNG(randFile);
 
-   SSL_METHOD *method = NULL;
-   switch (networkRole)
+   if (networkRole == DICOM_APPLICATION_ACCEPTOR)
    {
-     case DICOM_APPLICATION_ACCEPTOR: 
-       method = TLSv1_server_method();
-       break;
-     case DICOM_APPLICATION_REQUESTOR:
-       method = TLSv1_client_method();
-       break;
-     default:
-       method = TLSv1_method();
-       break;
+     transportLayerContext = SSL_CTX_new(TLSv1_server_method());
+   } else if (networkRole == DICOM_APPLICATION_REQUESTOR) {
+     transportLayerContext = SSL_CTX_new(TLSv1_client_method());
+   } else {
+     transportLayerContext = SSL_CTX_new(TLSv1_method());
    }
-   transportLayerContext = SSL_CTX_new(method);
 
 #ifdef DEBUG