Skip to content

Commit d9f773e

Browse files
committed
Manually roll back all changes for #2979
Those will be moved to a different branch for the time being since other stuff needs to be changed first
1 parent 219d049 commit d9f773e

21 files changed

+123
-611
lines changed

Frameworks/SPMySQLFramework/MySQL Client Libraries/Patches/001-cpp-dependency.diff

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
This patch is neccesary to remove a linker error when trying to link SPMySQL with libmysqlclient.a.
2-
3-
To apply:
4-
cd mysql-source-root
5-
patch -p1 < this-file
6-
7-
(patch created with `diff -Naur`)
8-
91
--- mysql-5.5.56-dist/extra/yassl/taocrypt/include/runtime.hpp 2017-04-27 09:12:30.000000000 +0200
102
+++ mysql-5.5.56/extra/yassl/taocrypt/include/runtime.hpp 2017-05-20 23:27:14.000000000 +0200
113
@@ -53,8 +53,8 @@

Frameworks/SPMySQLFramework/MySQL Client Libraries/Patches/002-new-types.diff

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
This patch backports field types that were added after MySQL 5.5,
2-
but are technically still compatible to the old client libs.
3-
4-
To apply:
5-
cd mysql-source-root
6-
patch -p1 < this-file
7-
8-
(patch created with `diff -Naur`)
9-
101
--- mysql-5.5.56-dist/include/mysql_com.h 2017-04-27 09:12:30.000000000 +0200
112
+++ mysql-5.5.56/include/mysql_com.h 2017-05-21 01:46:44.000000000 +0200
123
@@ -349,7 +349,11 @@

Frameworks/SPMySQLFramework/MySQL Client Libraries/Patches/003-callback-password-auth.diff

Lines changed: 0 additions & 111 deletions
This file was deleted.

Frameworks/SPMySQLFramework/MySQL Client Libraries/include/mysql.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,6 @@ typedef struct st_mysql
288288
/* needed for embedded server - no net buffer to store the 'info' */
289289
char *info_buffer;
290290
void *extension;
291-
292-
/* SPMySQL patch:
293-
* Set this to a callback function that will be invoked when mysql wants to do authentication.
294-
* @param mysql The MYSQL struct
295-
* @param plugin The name of the auth plugin that will be used (usually either
296-
* "mysql_native_password", "mysql_old_password" or "mysql_clear_password")
297-
* @param with_password A block function you must invoke, during which mysql can use the password you provide via the passwd parameter.
298-
* After the block you should immediately clear the password from memory again.
299-
*/
300-
void (*passwd_callback)(struct st_mysql *mysql, const char *plugin, void (^with_password)(const char *passwd));
301-
/* SPMySQL patch: This is used with passwd_callback to bridge back to OOP land */
302-
void *sp_context;
303291
} MYSQL;
304292

305293

Frameworks/SPMySQLFramework/MySQL Client Libraries/include/mysql_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#include <custom_conf.h>
1212
#else
1313
#define PROTOCOL_VERSION 10
14-
#define MYSQL_SERVER_VERSION "5.5.59"
14+
#define MYSQL_SERVER_VERSION "5.5.56"
1515
#define MYSQL_BASE_VERSION "mysqld-5.5"
1616
#define MYSQL_SERVER_SUFFIX_DEF ""
1717
#define FRM_VER 6
18-
#define MYSQL_VERSION_ID 50559
18+
#define MYSQL_VERSION_ID 50556
1919
#define MYSQL_PORT 3306
2020
#define MYSQL_PORT_DEFAULT 0
2121
#define MYSQL_UNIX_ADDR "/tmp/mysql.sock"
Binary file not shown.

Frameworks/SPMySQLFramework/SPMySQLFramework.xcodeproj/project.pbxproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
507FF1E51BC0D82300104523 /* DataConversion_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 507FF1811BC0C64100104523 /* DataConversion_Tests.m */; };
1414
507FF23B1BC0E8CA00104523 /* SPMySQL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* SPMySQL.framework */; };
1515
507FF23D1BC157B500104523 /* SPMySQLStringAdditions_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 507FF23C1BC157B500104523 /* SPMySQLStringAdditions_Tests.m */; };
16-
508FDC95204329580062A9CA /* SPMySQLUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 508FDC94204329580062A9CA /* SPMySQLUtilities.m */; };
1716
580A331E14D75CF7000D6933 /* SPMySQLGeometryData.h in Headers */ = {isa = PBXBuildFile; fileRef = 580A331C14D75CF7000D6933 /* SPMySQLGeometryData.h */; settings = {ATTRIBUTES = (Public, ); }; };
1817
580A331F14D75CF7000D6933 /* SPMySQLGeometryData.m in Sources */ = {isa = PBXBuildFile; fileRef = 580A331D14D75CF7000D6933 /* SPMySQLGeometryData.m */; };
1918
583C734A17A489CC0056B284 /* SPMySQLStreamingResultStoreDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 583C734917A489CC0056B284 /* SPMySQLStreamingResultStoreDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -104,7 +103,6 @@
104103
507FF1D51BC0D7D300104523 /* SPMySQL Unit Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SPMySQL Unit Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
105104
507FF1D81BC0D7D300104523 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
106105
507FF23C1BC157B500104523 /* SPMySQLStringAdditions_Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPMySQLStringAdditions_Tests.m; sourceTree = "<group>"; };
107-
508FDC94204329580062A9CA /* SPMySQLUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPMySQLUtilities.m; path = Source/SPMySQLUtilities.m; sourceTree = "<group>"; };
108106
580A331C14D75CF7000D6933 /* SPMySQLGeometryData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPMySQLGeometryData.h; path = Source/SPMySQLGeometryData.h; sourceTree = "<group>"; };
109107
580A331D14D75CF7000D6933 /* SPMySQLGeometryData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPMySQLGeometryData.m; path = Source/SPMySQLGeometryData.m; sourceTree = "<group>"; };
110108
583C734917A489CC0056B284 /* SPMySQLStreamingResultStoreDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPMySQLStreamingResultStoreDelegate.h; path = Source/SPMySQLStreamingResultStoreDelegate.h; sourceTree = "<group>"; };
@@ -275,7 +273,6 @@
275273
32C88DFF0371C24200C91783 /* Other Sources */ = {
276274
isa = PBXGroup;
277275
children = (
278-
508FDC94204329580062A9CA /* SPMySQLUtilities.m */,
279276
584294E314CB8002000F8438 /* SPMySQLConstants.h */,
280277
58C006C714E0B18A00AC489A /* SPMySQLUtilities.h */,
281278
32DBCF5E0370ADEE00C91783 /* SPMySQLFramework_Prefix.pch */,
@@ -558,7 +555,6 @@
558555
isa = PBXSourcesBuildPhase;
559556
buildActionMask = 2147483647;
560557
files = (
561-
508FDC96204329580062A9CA /* SPMySQLUtilities.m in Sources */,
562558
507FF23D1BC157B500104523 /* SPMySQLStringAdditions_Tests.m in Sources */,
563559
507FF1E51BC0D82300104523 /* DataConversion_Tests.m in Sources */,
564560
);
@@ -586,7 +582,6 @@
586582
58C00BD214E7459600AC489A /* Databases & Tables.m in Sources */,
587583
586A99FC14F02E21007F82BF /* SPMySQLStreamingResult.m in Sources */,
588584
586AA16814F30C5F007F82BF /* Convenience Methods.m in Sources */,
589-
508FDC95204329580062A9CA /* SPMySQLUtilities.m in Sources */,
590585
584D812F15057ECD00F24774 /* SPMySQLKeepAliveTimer.m in Sources */,
591586
584D82561509775000F24774 /* Copying.m in Sources */,
592587
58D2A4D216EDF1C6002EB401 /* SPMySQLEmptyResult.m in Sources */,

Frameworks/SPMySQLFramework/Source/SPMySQL Private APIs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
- (BOOL)_connect;
4343
- (MYSQL *)_makeRawMySQLConnectionWithEncoding:(NSString *)encodingName isMasterConnection:(BOOL)isMaster;
44-
- (void)_mysqlConnection:(MYSQL *)connection wantsPassword:(void (^)(const char *passwd))inBlock withPlugin:(const char *)pluginName;
4544
- (BOOL)_reconnectAllowingRetries:(BOOL)canRetry;
4645
- (BOOL)_reconnectAfterBackgroundConnectionLoss;
4746
- (BOOL)_waitForNetworkConnectionWithTimeout:(double)timeoutSeconds;

Frameworks/SPMySQLFramework/Source/SPMySQLConnection.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
pthread_t reconnectingThread;
6262
uint64_t initialConnectTime;
6363
unsigned long mysqlConnectionThreadId;
64-
BOOL allowCleartextPlugin;
6564

6665
// Connection proxy
6766
NSObject <SPMySQLConnectionProxy> *proxy;
@@ -176,23 +175,6 @@
176175
- (void)addClientFlags:(SPMySQLClientFlags)opts;
177176
- (void)removeClientFlags:(SPMySQLClientFlags)opts;
178177

179-
/**
180-
* This tells the mysql client whether the cleartext auth plugin is permitted.
181-
*
182-
* If enabled, and requested by the server, the password will simply be transmitted
183-
* in plaintext, instead of hashing it on the client first, thus this plugin is
184-
* rather risky. It is mostly used when the server has to forward the password to another
185-
* auth backend (which it can't do with the one-way hash).
186-
*
187-
* If it is not enabled, but requested by the server the connection will fail with
188-
* error "plugin not enabled (2059)"
189-
*
190-
* WARNING: There are 2 ways to enable this plugin: Via this property or by setting
191-
* the envvar LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN to 1. Sadly ANY ONE of those two is
192-
* sufficient to enable the plugin.
193-
*/
194-
@property (readwrite, assign, nonatomic) BOOL allowCleartextPlugin;
195-
196178
#pragma mark -
197179
#pragma mark Connection and disconnection
198180

0 commit comments

Comments
 (0)