This file is indexed.

/usr/include/digidocpp/XmlConf.h is in libdigidocpp-dev 0.3.0-0ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * libdigidocpp - a C++ library for creating and validating BDOC-1.0 documents
 *
 * Copyright (C) 2009-2010  Estonian Informatics Centre
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

/*
 * XmlConf.h
 *
 *  Created on: 10/02/2009
 *      Author: janno
 */

#ifndef XMLCONF_H_
#define XMLCONF_H_

#include "Conf.h"
#include "xml/conf.hxx"

namespace digidoc
{

class EXP_DIGIDOC XmlConf: public digidoc::Conf
{
public:
    static void initialize();
    XmlConf() throw(IOException);
    XmlConf(const std::string& path) throw(IOException);
    virtual ~XmlConf();

    virtual std::string getDigestUri() const;

    virtual std::string getManifestXsdPath() const;
    virtual std::string getXadesXsdPath() const;
    virtual std::string getDsigXsdPath() const;
    virtual std::string getPKCS11DriverPath() const;
    virtual OCSPConf getOCSP(const std::string &issuer) const;
    virtual std::string getCertStorePath() const;
    virtual std::string getProxyHost() const;
    virtual std::string getProxyPort() const;
    virtual std::string getProxyUser() const;
    virtual std::string getProxyPass() const;
    virtual std::string getPKCS12Cert() const;
    virtual std::string getPKCS12Pass() const;

    virtual std::string getUserConfDir() const;
    static std::string getDefaultConfDir();

    virtual void setProxyHost( const std::string &host ) throw(IOException);
    virtual void setProxyPort( const std::string &port ) throw(IOException);
    virtual void setProxyUser( const std::string &user ) throw(IOException);
    virtual void setProxyPass( const std::string &pass ) throw(IOException);
    virtual void setPKCS12Cert( const std::string &cert ) throw(IOException);
    virtual void setPKCS12Pass( const std::string &pass ) throw(IOException);

    virtual void setOCSP(const std::string &issuer, const std::string &url, const std::string &cert) throw(IOException);



private:
    void init(const std::string& path) throw(IOException);

    void setUserConf(const std::string &paramName, const std::string &value) throw(IOException);
    void setUserOCSP(const Conf::OCSPConf &ocspData) throw(IOException);
    void serializeUserConf(const ::Configuration &pConf) throw(IOException);
    static std::string getConfSchemaLocation() throw(IOException);
    static void setDefaultConfPath() throw(IOException);
    static void setUserConfPath();

    static std::string DEFAULT_CONF_LOC;
    static std::string USER_CONF_LOC;

    std::string digestUri;
    std::string pkcs11DriverPath;
    std::string certStorePath;
    std::string manifestXsdPath;
    std::string xadesXsdPath;
    std::string dsigXsdPath;
    std::string proxyHost;
    std::string proxyPort;
    std::string proxyUser;
    std::string proxyPass;
    std::string pkcs12Cert;
    std::string pkcs12Pass;
    std::vector<OCSPConf> ocsp;


    static const std::string DIGEST_URI;
    static const std::string PKCS11_DRIVER_PATH;
    static const std::string CERT_STORE_PATH;
    static const std::string MANIFEST_XSD_PATH;
    static const std::string XADES_XSD_PATH;
    static const std::string DSIG_XSD_PATH;
    static const std::string PROXY_HOST;
    static const std::string PROXY_PORT;
    static const std::string PROXY_USER;
    static const std::string PROXY_PASS;
    static const std::string PKCS12_CERT;
    static const std::string PKCS12_PASS;
};

}

#endif /* XMLCONF_H_ */