Skip to content

Commit

Permalink
configure: attempt to fix that SRP nightmare finally
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Aug 27, 2024
1 parent b70038e commit 481e186
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autoconf/pecl/libcurl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@ AC_DEFUN([PECL_HAVE_LIBCURL_SSL], [dnl
int main(int argc, char *argv[]) {
int has_feature = curl_version_info(CURLVERSION_NOW)->features & CURL_VERSION_TLSAUTH_SRP;
int set_failure = curl_easy_setopt(curl_easy_init(), CURLOPT_TLSAUTH_TYPE, "SRP");
return !has_feature || set_failure;
int unset_failure = curl_easy_setopt(curl_easy_init(), CURLOPT_TLSAUTH_TYPE, "NONE");
fprintf(stderr, "SRP has_feature=%d set_failure=%d unset_failure=%d\n", has_feature, set_failure, unset_failure);
int ret = !has_feature;
if (set_failure)
ret |= 1<<1;
if (unset_failure)
ret |= 1<<2;
return ret;
}
], [
PECL_CACHE_VAR([LIBCURL_TLSAUTH_SRP])=yes
Expand Down

0 comments on commit 481e186

Please sign in to comment.