~thopiekar/zypper/libzypp-manual-import

« back to all changes in this revision

Viewing changes to zypp/KeyRing.h

  • Committer: Thomas-Karl Pietrowski
  • Date: 2015-08-15 15:59:50 UTC
  • Revision ID: thopiekar@googlemail.com-20150815155950-j66qn38efmvn289t
syncing with "changes 15.13.0 (11)"  #9a0aca7e3a21d768491b141a8ae86ef0c3fbc227
* https://github.com/openSUSE/libzypp/commit/9a0aca7e3a21d768491b141a8ae86ef0c3fbc227

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
     * To propagate user decisions, either connect to the \ref KeyRingReport
247
247
     * or use its static methods to set the desired defaults.
248
248
     *
 
249
     * A second bool passed as reference arg \a sigValid_r tells whether the
 
250
     * signature was actually successfully verified. If \a sigValid_r returns
 
251
     * \c false, but the method \c true, you know it's due to user callback or
 
252
     * defaults.
 
253
     *
249
254
     * \code
250
255
     * struct KeyRingReportReceive : public callback::ReceiveReport<KeyRingReport>
251
256
     * {
260
265
     * \param file Path of the file to be verified
261
266
     * \param filedesc Description of the file (to give the user some context)
262
267
     * \param signature Signature to verify the file against
 
268
     * \param sigValid_r Returns whether signature was successfully verified
263
269
     *
264
270
     * \see \ref KeyRingReport
265
271
     */
266
 
    bool verifyFileSignatureWorkflow(
267
 
        const Pathname &file,
268
 
        const std::string filedesc,
269
 
        const Pathname &signature,
270
 
        const KeyContext &keycontext = KeyContext());
271
 
 
 
272
    bool verifyFileSignatureWorkflow( const Pathname &file, const std::string &filedesc, const Pathname &signature, bool & sigValid_r, const KeyContext &keycontext = KeyContext());
 
273
    /** \overload legacy version without 'bool & sigValid_r' */
 
274
    bool verifyFileSignatureWorkflow( const Pathname &file, const std::string filedesc, const Pathname &signature, const KeyContext &keycontext = KeyContext());
272
275
 
273
276
    /**
274
277
     * Verifies a file against a signature, with no user interaction