certmanager/lib

cryptplugwrapperlist.cpp
1 /* -*- c++ -*-
2 
3  CRYPTPLUG - an independent cryptography plug-in
4  API. CryptPlugWrapperList holds any number of crypto plug-ins.
5 
6  Copyright (C) 2001 by Klarälvdalens Datakonsult AB
7 
8  CRYPTPLUG is free software; you can redistribute it and/or modify
9  it under the terms of GNU General Public License as published by
10  the Free Software Foundation; version 2 of the License.
11 
12  CRYPTPLUG is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21 
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25 
26 #include "cryptplugwrapperlist.h"
27 
28 CryptPlugWrapper * CryptPlugWrapperList::findForLibName( const TQString & libName ) const
29 {
30  for ( TQPtrListIterator<CryptPlugWrapper> it( *this ) ; it.current() ; ++it )
31  if ( (*it)->libName().find( libName, 0, false ) >= 0 )
32  return *it;
33  return 0;
34 }
This class provides C++ access to the CRYPTPLUG API.