This file is indexed.

/usr/include/libdigidoc/mssp/DigiDocMsspGw.h is in libdigidoc-dev 2.7.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#ifndef __DIGIDOC_MSSP_GW_H__
#define __DIGIDOC_MSSP_GW_H__
//==================================================
// FILE:	DigiDocMsspGw.h
// PROJECT:     Digi Doc
// DESCRIPTION: Digi Doc functions for MSSP_GW client
// AUTHOR:  Veiko Sinivee, S|E|B IT Partner Estonia
//==================================================
// Copyright (C) AS Sertifitseerimiskeskus
// 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.
// GNU Lesser General Public Licence is available at
// http://www.gnu.org/copyleft/lesser.html
//==========< HISTORY >=============================
//      25.09.2005      Veiko Sinivee
//                      Creation
//==================================================

#include <libdigidoc/DigiDocDefs.h>
#include <libdigidoc/mssp/stdsoap2.h>
#include <libdigidoc/mssp/MsspErrors.h>
#include <libdigidoc/DigiDocMem.h>
#include <openssl/x509.h>

#ifdef  __cplusplus
extern "C" {
#endif

typedef struct MSSP_st
{
  struct soap soap;
  const char *endpoint;
  time_t  lApTxnId;
  unsigned long lMsspTxnId;
  int nStatusCode;
} MSSP;

//--------------------------------------------------
// Initializes MSSP connection
// pMssp - pointer to MSSP context structure
// returns ERR_OK on success
//--------------------------------------------------
EXP_OPTION int ddocMsspConnect(MSSP** pMssp);

//--------------------------------------------------
// Reconnects to MSSP service if necessary
// pMssp - pointer to MSSP context structure
// returns ERR_OK on success
//--------------------------------------------------
EXP_OPTION int ddocMsspReconnect(MSSP* pMssp);

//--------------------------------------------------
// Cleanup MSSP connection. Free memory
// pMssp - pointer to MSSP context structure
// returns ERR_OK on success
//--------------------------------------------------
EXP_OPTION int ddocMsspDisconnect(MSSP* pMssp);

//--------------------------------------------------
// Cleanup MSSP connection but don't disconnect
// pMssp - pointer to MSSP context structure
// returns ERR_OK on success
//--------------------------------------------------
EXP_OPTION int ddocMsspCleanup(MSSP* pMssp);

//--------------------------------------------------
// Sends an MSSP request to sign this data
// pMssp - pointer to MSSP context structure
// szPhoneNo - phone number on which to sign
// pHash - pointer to binary hash to sign
// nHashLen - length of hash data
// szDesc - description what user is signing (file name)
// returns error code or SOAP_OK
//--------------------------------------------------
EXP_OPTION int ddocMsspSignatureReq(MSSP* pMssp, const char* szPhoneNo,
			 const char* pHash, int nHashLen, const char* szDesc);

//--------------------------------------------------
// Sends an MSSP request to find the status of signature
// operation and possibly it's value
// pMssp - pointer to MSSP context structure
// pMbufSignature - memory buffer to store signature value
// returns error code or SOAP_OK
//--------------------------------------------------
EXP_OPTION int ddocMsspStatusReq(MSSP* pMssp, DigiDocMemBuf* pMbufSignature);

//--------------------------------------------------
// Reads the signers certificate based on the signers 
// phone number.
// szPhoneNo - phone number
// szCertUrl - full url where to get cert. Use NULL for default url
// ppCert - address to store the certificate
// bAuthCert - 1=auth cert, 0=sign cert
// returns error coder or ERR_OK
//--------------------------------------------------
EXP_OPTION int ddocMsspReadCertificate(const char* szPhoneNo, const char* szCertUrl, 
				       X509 **ppCert, int bAuthCert);

//--------------------------------------------------
// Rerieves SOAP fault string
// pMssp - pointer to MSSP context structure
// returns SOAP fault string or NULL
//--------------------------------------------------
EXP_OPTION char* ddocGetSoapFaultString(MSSP* pMssp);

//--------------------------------------------------
// Rerieves SOAP fault code
// pMssp - pointer to MSSP context structure
// returns SOAP fault code or NULL
//--------------------------------------------------
EXP_OPTION char* ddocGetSoapFaultCode(MSSP* pMssp);

//--------------------------------------------------
// Rerieves SOAP fault detail
// pMssp - pointer to MSSP context structure
// returns SOAP fault detail or NULL
//--------------------------------------------------
EXP_OPTION char* ddocGetSoapFaultDetail(MSSP* pMssp);



#ifdef  __cplusplus
}
#endif

#endif // __DIGIDOC_MSSP_GW_H__