"Fossies" - the Fresh Open Source Software Archive

Member "sssd-2.2.3/src/providers/ad/ad_srv.h" (30 Nov 2019, 2246 Bytes) of package /linux/misc/sssd-2.2.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ad_srv.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2     Authors:
    3         Pavel Březina <pbrezina@redhat.com>
    4 
    5     Copyright (C) 2013 Red Hat
    6 
    7     This program is free software; you can redistribute it and/or modify
    8     it under the terms of the GNU General Public License as published by
    9     the Free Software Foundation; either version 3 of the License, or
   10     (at your option) any later version.
   11 
   12     This program is distributed in the hope that it will be useful,
   13     but WITHOUT ANY WARRANTY; without even the implied warranty of
   14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15     GNU General Public License for more details.
   16 
   17     You should have received a copy of the GNU General Public License
   18     along with this program.  If not, see <http://www.gnu.org/licenses/>.
   19 */
   20 
   21 #ifndef __AD_SRV_H__
   22 #define __AD_SRV_H__
   23 
   24 struct ad_srv_plugin_ctx;
   25 
   26 struct ad_srv_plugin_ctx *
   27 ad_srv_plugin_ctx_init(TALLOC_CTX *mem_ctx,
   28                        struct be_ctx *be_ctx,
   29                        struct be_resolv_ctx *be_res,
   30                        enum host_database *host_dbs,
   31                        struct sdap_options *opts,
   32                        const char *hostname,
   33                        const char *ad_domain,
   34                        const char *ad_site_override);
   35 
   36 struct tevent_req *ad_srv_plugin_send(TALLOC_CTX *mem_ctx,
   37                                        struct tevent_context *ev,
   38                                        const char *service,
   39                                        const char *protocol,
   40                                        const char *discovery_domain,
   41                                        void *pvt);
   42 
   43 errno_t ad_srv_plugin_recv(TALLOC_CTX *mem_ctx,
   44                             struct tevent_req *req,
   45                             char **_dns_domain,
   46                             uint32_t *_ttl,
   47                             struct fo_server_info **_primary_servers,
   48                             size_t *_num_primary_servers,
   49                             struct fo_server_info **_backup_servers,
   50                             size_t *_num_backup_servers);
   51 
   52 char *ad_site_dns_discovery_domain(TALLOC_CTX *mem_ctx,
   53                                    const char *site,
   54                                    const char *domain);
   55 
   56 #endif /* __AD_SRV_H__ */