Skip to content

Commit

Permalink
jcr: separate file for AuthenticationTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Nov 7, 2019
1 parent 861a55f commit ebfedc5
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 11 deletions.
1 change: 1 addition & 0 deletions core/src/dird/dird_conf.cc
Expand Up @@ -53,6 +53,7 @@
#include "dird/dird_globals.h"
#include "dird/jcr_private.h"
#include "include/auth_protocol_types.h"
#include "include/auth_types.h"
#include "include/protocol_types.h"
#include "lib/berrno.h"
#include "lib/breg.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ndmp_dma_generic.cc
Expand Up @@ -32,6 +32,7 @@
#include "dird/jcr_private.h"
#include "dird/dird_globals.h"
#include "include/auth_protocol_types.h"
#include "include/auth_types.h"

#if HAVE_NDMP
#define SMTAPE_MIN_BLOCKSIZE 4096 /**< 4 Kb */
Expand Down
35 changes: 35 additions & 0 deletions core/src/include/auth_types.h
@@ -0,0 +1,35 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2019 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
This program 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
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/

#ifndef BAREOS_SRC_INCLUDE_AUTH_TYPES_H_
#define BAREOS_SRC_INCLUDE_AUTH_TYPES_H_

enum AuthenticationTypes
{
AT_NONE = 0,
AT_CLEAR,
AT_MD5,
AT_VOID
};

#endif // BAREOS_SRC_INCLUDE_AUTH_TYPES_H_
11 changes: 0 additions & 11 deletions core/src/include/jcr.h
Expand Up @@ -51,17 +51,6 @@ typedef struct s_tree_root TREE_ROOT;

class dlist;

/**
* Authentication types
*/
enum
{
AT_NONE = 0,
AT_CLEAR,
AT_MD5,
AT_VOID
};

/**
* Migration selection types
*/
Expand Down
1 change: 1 addition & 0 deletions core/src/stored/ndmp_tape.cc
Expand Up @@ -58,6 +58,7 @@
#include "lib/bpoll.h"
#include "lib/parse_conf.h"
#include "lib/thread_list.h"
#include "include/auth_types.h"
#include "include/jcr.h"

#include <netinet/in.h>
Expand Down
1 change: 1 addition & 0 deletions core/src/stored/stored_conf.cc
Expand Up @@ -45,6 +45,7 @@
#define NEED_JANSSON_NAMESPACE 1
#include "lib/output_formatter.h"
#include "lib/json.h"
#include "include/auth_types.h"
#include "include/jcr.h"

namespace storagedaemon {
Expand Down

0 comments on commit ebfedc5

Please sign in to comment.