Skip to content

Commit

Permalink
jcr: separate file for AuthenticationProtocolType
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Nov 7, 2019
1 parent 5ff0773 commit 861a55f
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 11 deletions.
1 change: 1 addition & 0 deletions core/src/dird/backup.cc
Expand Up @@ -48,6 +48,7 @@
#include "dird/sd_cmds.h"
#include "ndmp/smc.h"
#include "dird/storage.h"
#include "include/auth_protocol_types.h"
#include "include/protocol_types.h"

#include "cats/sql.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/dird_conf.cc
Expand Up @@ -52,6 +52,7 @@
#include "dird/inc_conf.h"
#include "dird/dird_globals.h"
#include "dird/jcr_private.h"
#include "include/auth_protocol_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/migrate.cc
Expand Up @@ -52,6 +52,7 @@
#include "dird/ua_server.h"
#include "dird/ua_purge.h"
#include "dird/ua_run.h"
#include "include/auth_protocol_types.h"
#include "lib/edit.h"
#include "lib/parse_conf.h"
#include "lib/util.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ndmp_dma_generic.cc
Expand Up @@ -31,6 +31,7 @@
#include "dird.h"
#include "dird/jcr_private.h"
#include "dird/dird_globals.h"
#include "include/auth_protocol_types.h"

#if HAVE_NDMP
#define SMTAPE_MIN_BLOCKSIZE 4096 /**< 4 Kb */
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/stats.cc
Expand Up @@ -34,6 +34,7 @@
#include "cats/sql_pooling.h"
#include "dird/sd_cmds.h"
#include "dird/ua_server.h"
#include "include/auth_protocol_types.h"
#include "lib/bnet.h"
#include "lib/parse_conf.h"
#include "lib/util.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/storage.cc
Expand Up @@ -34,6 +34,7 @@
#include "dird/dird_globals.h"
#include "dird/jcr_private.h"
#include "dird/sd_cmds.h"
#include "include/auth_protocol_types.h"
#include "lib/parse_conf.h"
#include "lib/util.h"

Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ua_cmds.cc
Expand Up @@ -48,6 +48,7 @@
#include "dird/ua_status.h"
#include "dird/ua_purge.h"
#include "dird/ua_run.h"
#include "include/auth_protocol_types.h"
#include "lib/bnet.h"
#include "lib/edit.h"
#include "lib/parse_conf.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ua_label.cc
Expand Up @@ -46,6 +46,7 @@
#include "dird/ua_input.h"
#include "dird/ua_label.h"
#include "dird/ua_select.h"
#include "include/auth_protocol_types.h"
#include "lib/crypto_wrap.h"
#include "lib/passphrase.h"
#include "lib/util.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ua_purge.cc
Expand Up @@ -43,6 +43,7 @@
#include "dird/ua_select.h"
#include "dird/ua_prune.h"
#include "dird/ua_purge.h"
#include "include/auth_protocol_types.h"
#include "lib/edit.h"
#include "lib/util.h"

Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ua_status.cc
Expand Up @@ -45,6 +45,7 @@
#include "dird/ua_output.h"
#include "dird/ua_select.h"
#include "dird/ua_status.h"
#include "include/auth_protocol_types.h"
#include "lib/edit.h"
#include "lib/recent_job_results_list.h"
#include "lib/parse_conf.h"
Expand Down
35 changes: 35 additions & 0 deletions core/src/include/auth_protocol_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_PROTOCOL_TYPES_H_
#define BAREOS_SRC_INCLUDE_AUTH_PROTOCOL_TYPES_H_

enum AuthenticationProtocolType
{
APT_NATIVE = 0,
APT_NDMPV2,
APT_NDMPV3,
APT_NDMPV4
};

#endif // BAREOS_SRC_INCLUDE_AUTH_PROTOCOL_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 Protocol types
*/
enum
{
APT_NATIVE = 0,
APT_NDMPV2,
APT_NDMPV3,
APT_NDMPV4
};

/**
* Authentication types
*/
Expand Down

0 comments on commit 861a55f

Please sign in to comment.