X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fsignature%2FOpenSSLCredentialResolver.h;h=77c2b95ea545dc1712a9539c13cb7f51fa1cbf89;hp=e119380f6d090c75a0a51596605cbad432ce5596;hb=e7a65d784215bc04355f014141219b3e7ab4559a;hpb=77769b2e300d1295b8a5d717d9ede50e27d70cea diff --git a/xmltooling/signature/OpenSSLCredentialResolver.h b/xmltooling/signature/OpenSSLCredentialResolver.h index e119380..77c2b95 100644 --- a/xmltooling/signature/OpenSSLCredentialResolver.h +++ b/xmltooling/signature/OpenSSLCredentialResolver.h @@ -1,54 +1,54 @@ -/* - * Copyright 2001-2006 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file xmltooling/signature/OpenSSLCredentialResolver.h - * - * OpenSSL-specific credential resolver - */ - -#if !defined(__xmltooling_opensslcredres_h__) && !defined(XMLTOOLING_NO_XMLSEC) -#define __xmltooling_opensslcredres_h__ - -#include - -#include - -namespace xmlsignature { - - /** - * An OpenSSL-specific API for resolving local/owned keys and certificates - */ - class XMLTOOL_API OpenSSLCredentialResolver : public CredentialResolver - { - protected: - OpenSSLCredentialResolver() {} - - public: - virtual ~OpenSSLCredentialResolver() {} - - /** - * Attaches credentials to an OpenSSL SSL context object. - * The resolver is unlockable after attachment. - * - * @param ctx an SSL context - */ - virtual void attach(SSL_CTX* ctx) const=0; - }; - -}; - -#endif /* __xmltooling_opensslcredres_h__ */ +/* + * Copyright 2001-2006 Internet2 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file xmltooling/signature/OpenSSLCredentialResolver.h + * + * OpenSSL-specific credential resolver + */ + +#if !defined(__xmltooling_opensslcredres_h__) && !defined(XMLTOOLING_NO_XMLSEC) +#define __xmltooling_opensslcredres_h__ + +#include + +#include + +namespace xmlsignature { + + /** + * An OpenSSL-specific API for resolving local/owned keys and certificates + */ + class XMLTOOL_API OpenSSLCredentialResolver : public CredentialResolver + { + protected: + OpenSSLCredentialResolver() {} + + public: + virtual ~OpenSSLCredentialResolver() {} + + /** + * Attaches credentials to an OpenSSL SSL context object. + * The resolver is unlockable after attachment. + * + * @param ctx an SSL context + */ + virtual void attach(SSL_CTX* ctx) const=0; + }; + +}; + +#endif /* __xmltooling_opensslcredres_h__ */