mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
Move GetMimeTypeFromFileName() and related structure to Mayaqua
The structure (containing all mimetypes) occupies almost 700 lines, which are a lot. This is just the beginning of the refactor plan.
This commit is contained in:
@ -8,13 +8,6 @@
|
||||
#ifndef PROTOCOL_H
|
||||
#define PROTOCOL_H
|
||||
|
||||
// MIME types
|
||||
struct HTTP_MIME_TYPE
|
||||
{
|
||||
char *Extension;
|
||||
char *MimeType;
|
||||
};
|
||||
|
||||
// The parameters that will be passed to the certificate confirmation thread
|
||||
struct CHECK_CERT_THREAD_PROC
|
||||
{
|
||||
@ -197,6 +190,5 @@ X *FindCertIssuerFromCertList(LIST *o, X *x);
|
||||
bool TryGetRootCertChain(LIST *o, X *x, bool auto_save, X **found_root_x);
|
||||
bool TryGetParentCertFromCertList(LIST *o, X *x, LIST *found_chain);
|
||||
bool DownloadAndSaveIntermediateCertificatesIfNecessary(X *x);
|
||||
char *GetMimeTypeFromFileName(char *filename);
|
||||
|
||||
#endif // PROTOCOL_H
|
||||
|
Reference in New Issue
Block a user