]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove some unnecessary code "protecting" some use of the OpenSSL library.
authorMike Brady <mikebrady@eircom.net>
Sun, 27 Jan 2019 13:50:54 +0000 (13:50 +0000)
committerMike Brady <mikebrady@eircom.net>
Sun, 27 Jan 2019 13:50:54 +0000 (13:50 +0000)
shairport.c

index 292acf25892e54abd9db8b1f5e67c4ba1c4364f5..15f8b9c82c02c9ec9b612ff86708de847ff70d3c 100644 (file)
@@ -2,7 +2,7 @@
  * Shairport, an Apple Airplay receiver
  * Copyright (c) James Laird 2013
  * All rights reserved.
- * Modifications (c) Mike Brady 2014--2018
+ * Modifications and additions (c) Mike Brady 2014--2019
  *
  * Permission is hereby granted, free of charge, to any person
  * obtaining a copy of this software and associated documentation
@@ -1602,14 +1602,10 @@ int main(int argc, char **argv) {
   uint8_t ap_md5[16];
 
 #ifdef CONFIG_OPENSSL
-  // can't imagine this is necessary, but here it is anyway
-  int oldState;
-  pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldState); // make this un-cancellable
   MD5_CTX ctx;
   MD5_Init(&ctx);
   MD5_Update(&ctx, config.service_name, strlen(config.service_name));
   MD5_Final(ap_md5, &ctx);
-  pthread_setcancelstate(oldState, NULL);
 #endif
 
 #ifdef CONFIG_MBEDTLS