Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
// Copyright 2015 The BoringSSL Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H
|
|
#define OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H
|
|
|
|
#include <openssl/base.h>
|
|
|
|
#include "../lhash/internal.h"
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
typedef struct conf_section_st CONF_SECTION;
|
|
|
|
DEFINE_LHASH_OF(CONF_SECTION)
|
|
DEFINE_LHASH_OF(CONF_VALUE)
|
|
|
|
struct conf_st {
|
|
LHASH_OF(CONF_VALUE) *values;
|
|
LHASH_OF(CONF_SECTION) *sections;
|
|
};
|
|
|
|
// CONF_VALUE_new returns a freshly allocated and zeroed |CONF_VALUE|.
|
|
CONF_VALUE *CONF_VALUE_new(void);
|
|
|
|
// CONF_parse_list takes a list separated by 'sep' and calls |list_cb| giving
|
|
// the start and length of each member, optionally stripping leading and
|
|
// trailing whitespace. This can be used to parse comma separated lists for
|
|
// example. If |list_cb| returns <= 0, then the iteration is halted and that
|
|
// value is returned immediately. Otherwise it returns one. Note that |list_cb|
|
|
// may be called on an empty member.
|
|
OPENSSL_EXPORT int CONF_parse_list(
|
|
const char *list, char sep, int remove_whitespace,
|
|
int (*list_cb)(const char *elem, size_t len, void *usr), void *arg);
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
} // extern C
|
|
#endif
|
|
|
|
#endif // OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H
|