Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • FlashMQ
  • FlashMQTests
  • conffiletemp.h
  • Test (plugin) auth system + fixes ...
    5f683b9c
    When the plugin was enabled, it would never got past the fail of not
    having a password file entry. This is fixed.
    
    The reauth didn't work because setting the return data took the path of
    first auth, hitting a protection exception. This is fixed.
    
    Writing extended auth tests involved some refactoring, to create a
    separate method to parse the auth packet data, because I needed it in
    the test too.
    Wiebe Cazemier authored
    2022-09-18 21:58:22 +0200  
    Browse Code ยป
conffiletemp.h 321 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef CONFFILETEMP_H
#define CONFFILETEMP_H

#include <string>

class ConfFileTemp
{
    int fd = -1;
    std::string filePath;

public:
    ConfFileTemp();
    ~ConfFileTemp();

    const std::string &getFilePath() const;
    void writeLine(const std::string &line);
    void closeFile();
};

#endif // CONFFILETEMP_H