$OpenBSD: patch-sdext_source_pdfimport_filterdet_cxx,v 1.4 2010/11/09 18:40:04 robert Exp $
--- sdext/source/pdfimport/filterdet.cxx.orig.port	Thu Oct 21 14:03:08 2010
+++ sdext/source/pdfimport/filterdet.cxx	Sat Oct 23 18:40:07 2010
@@ -710,48 +710,6 @@ uno::Reference< io::XStream > getAdditionalStream( con
                         OSL_ENSURE( pObject, "object not found\n" );
                         if( pObject )
                         {
-                            if( pPDFFile->isEncrypted() )
-                            {
-                                bool bAuthenticated = false;
-                                if( io_rPwd.getLength() )
-                                {
-                                    rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
-                                                                                   RTL_TEXTENCODING_ISO_8859_1 );
-                                    bAuthenticated = pPDFFile->setupDecryptionData( aIsoPwd.getStr() );
-                                }
-                                if( ! bAuthenticated )
-                                {
-                                    const beans::PropertyValue* pAttribs = rFilterData.getConstArray();
-                                    sal_Int32 nAttribs = rFilterData.getLength();
-                                    uno::Reference< task::XInteractionHandler > xIntHdl;
-                                    for( sal_Int32 i = 0; i < nAttribs; i++ )
-                                    {
-                                        if( pAttribs[i].Name.equalsAscii( "InteractionHandler" ) )
-                                            pAttribs[i].Value >>= xIntHdl;
-                                    }
-                                    if( ! bMayUseUI || ! xIntHdl.is() )
-                                    {
-                                        rOutMimetype = pMimeType->getFilteredName();
-                                        xEmbed.clear();
-                                        break;
-                                    }
-                                    
-                                    rtl::OUString aDocName( rInPDFFileURL.copy( rInPDFFileURL.lastIndexOf( sal_Unicode('/') )+1 ) );
-
-                                    bool bEntered = false;
-                                    do
-                                    {
-                                        bEntered = getPassword( xIntHdl, io_rPwd, ! bEntered, aDocName );
-                                        rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
-                                                                                       RTL_TEXTENCODING_ISO_8859_1 );
-                                        bAuthenticated = pPDFFile->setupDecryptionData( aIsoPwd.getStr() );
-                                    } while( bEntered && ! bAuthenticated );
-                                }
-
-                                OSL_TRACE( "password: %s\n", bAuthenticated ? "matches" : "does not match" );
-                                if( ! bAuthenticated )
-                                    continue;
-                            }
                             rOutMimetype = pMimeType->getFilteredName();
                             FileEmitContext aContext( rInPDFFileURL,
                                                       xContext,
